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
Hi, I'm developing a fuzzer to test the safe abstraction, and I found a multiply with overflow when calling function src/lib/setup_pfioc_states(). Below is a test case:
thread 'test_setup_pfioc_states_8Cv9V' panicked at src/lib.rs:563:27:
attempt to multiply with overflow
stack backtrace:
0: rust_begin_unwind
at /rustc/d84b9037541f45dc2c52a41d723265af211c0497/library/std/src/panicking.rs:652:5
1: core::panicking::panic_fmt
at /rustc/d84b9037541f45dc2c52a41d723265af211c0497/library/core/src/panicking.rs:72:14
2: core::panicking::panic_const::panic_const_mul_overflow
at /rustc/d84b9037541f45dc2c52a41d723265af211c0497/library/core/src/panicking.rs:179:21
3: pfctl::setup_pfioc_states
at ./src/lib.rs:563:27
4: pfctl::test_setup_pfioc_states_8Cv9V
at ./src/lib.rs:646:13
5: pfctl::test_setup_pfioc_states_8Cv9V::{{closure}}
at ./src/lib.rs:629:35
6: core::ops::function::FnOnce::call_once
at /rustc/d84b9037541f45dc2c52a41d723265af211c0497/library/core/src/ops/function.rs:250:5
7: core::ops::function::FnOnce::call_once
at /rustc/d84b9037541f45dc2c52a41d723265af211c0497/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
I think checking the scope of pfioc_states after unsafe block would make the external API more robust.
Hi, I'm developing a fuzzer to test the safe abstraction, and I found a multiply with overflow when calling function
src/lib/setup_pfioc_states()
. Below is a test case:Output:
I think checking the scope of
pfioc_states
after unsafe block would make the external API more robust.pfctl-rs/src/lib.rs
Line 561 in d47081f
The text was updated successfully, but these errors were encountered: