Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade hash32 and silence miri false positive #618

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ arbitrary = { version = "1.0", optional = true, features = ["derive"] }
byteorder = "1.2"
combine = "3.8.1"
gdbstub = { version = "0.6.2", optional = true }
hash32 = "0.2.0"
hash32 = "0.3.1"
log = "0.4.2"
rand = { version = "0.8.5", features = ["small_rng"]}
rustc-demangle = "0.1"
Expand Down
6 changes: 3 additions & 3 deletions src/ebpf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
//! the list of the operation codes: <https://github.com/iovisor/bpf-docs/blob/master/eBPF.md>

use byteorder::{ByteOrder, LittleEndian};
use hash32::{Hash, Hasher, Murmur3Hasher};
use std::fmt;
use hash32::{Hasher, Murmur3Hasher};
use std::{fmt, hash::Hash};

/// Solana BPF version flag
pub const EF_SBPF_V2: u32 = 0x20;
Expand Down Expand Up @@ -656,5 +656,5 @@ pub fn augment_lddw_unchecked(prog: &[u8], insn: &mut Insn) {
pub fn hash_symbol_name(name: &[u8]) -> u32 {
let mut hasher = Murmur3Hasher::default();
Hash::hash_slice(name, &mut hasher);
hasher.finish()
hasher.finish32()
}