Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@0xalpharush
Copy link

The current version of hash32 is about a year older than the one most recently released and has some behavior that is (incorrectly) flagged as undefined behavior (UB) by tools like Miri. This prevents any tool downstream of rbpf from using the rustc flags and tools like miri to identify UB as it will fail (xref rust-embedded-community/hash32#14).

$ RUSTFLAGS="-Zstrict-init-checks" cargo +nightly test
thread 'elf::test::test_entrypoint' panicked at core/src/panicking.rs:221:5:
attempted to leave type `murmur3::Buffer` uninitialized, which is invalid
thread caused non-unwinding panic. aborting.

Upgrading hash32 fixes this.

Migrating this PR here solana-labs#618

@Lichtso Lichtso merged commit 9909277 into anza-xyz:main Mar 28, 2025
11 checks passed
@abo-L
Copy link

abo-L commented May 30, 2025

SOLANA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants