The Bun project's codebase, recently rewritten in Rust, has been found to contain undefined behavior due to the use of unsafe code. The issue was discovered through the use of the Miri tool, which checks for undefined behavior in Rust code. The project's authors had cited Rust's safety features as a motivation for the port, but the current implementation does not yet take full advantage of these features. The codebase is still a work in progress and has not been claimed to be bug-free or production-ready.