You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 3, 2026. It is now read-only.
We are a team of researchers studying the memory safety problem in Rust. As part of our ongoing research, we performed random testing on bitmaps (version: 3.2.1) and found that the following code snippet is reported as undefined behavior by Miri:
error:UndefinedBehavior: calling a function that requires unavailable target features: avx
--> /home/chenyl/projects/Itgen_test/extra/bitmaps-3.2.1/src/bitmap.rs:699:22
|
699 | unsafe{ data.load_m256i()}
| ^^^^^^^^^^^^^^^^^ UndefinedBehavior occurred here
|
= help: this indicates a bug in the program: it performed an invalid operation, and caused UndefinedBehavior
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
= note:BACKTRACE:
= note: inside `bitmaps::bitmap::x86_arch::<impl std::convert::From<bitmaps::Bitmap<256>>for std::arch::x86_64::__m256i>::from` at /home/chenyl/projects/Itgen_test/extra/bitmaps-3.2.1/src/bitmap.rs:699:22:699:39
note: inside `main`
--> src/main.rs:6:15
|
6 | ... = <std::arch::x86_64::__m256ias std::convert::From<Bitmap::<256>>>::from(v59);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
error:aborting due to 1 previous error;1 warning emitted
You can reproduce this UB by using the following command: MIRIFLAGS="-Zmiri-ignore-leaks -Zmiri-disable-stacked-borrows" cargo +nightly-2025-09-10 miri run
I notice that there is already an issue talking about this UB, here I provide the POC you can check out.
We’d appreciate it if you could take a look and confirm whether this behavior indicates a real issue, or if it’s a false positive or an expected limitation of Miri.
Thank you very much for your time and for maintaining this great project! 🙏
Hi!
We are a team of researchers studying the memory safety problem in Rust. As part of our ongoing research, we performed random testing on bitmaps (version: 3.2.1) and found that the following code snippet is reported as undefined behavior by Miri:
Here is part of the error message:
You can reproduce this UB by using the following command:
MIRIFLAGS="-Zmiri-ignore-leaks -Zmiri-disable-stacked-borrows" cargo +nightly-2025-09-10 miri runI notice that there is already an issue talking about this UB, here I provide the POC you can check out.
We’d appreciate it if you could take a look and confirm whether this behavior indicates a real issue, or if it’s a false positive or an expected limitation of Miri.
Thank you very much for your time and for maintaining this great project! 🙏