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 Jan 2, 2025. It is now read-only.
Hi, I'm developing a fuzzer to test the safe abstraction, and I fonnd a overflow issue in function cdrs::types::try_i_to_n_bytes.
Below is a test case:
thread 'types::test_try_i_to_n_bytes_UNell' panicked at library/alloc/src/raw_vec.rs:25:5:
capacity 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: alloc::raw_vec::capacity_overflow
at /rustc/d84b9037541f45dc2c52a41d723265af211c0497/library/alloc/src/raw_vec.rs:25:5
3: alloc::raw_vec::handle_error
at /rustc/d84b9037541f45dc2c52a41d723265af211c0497/library/alloc/src/raw_vec.rs:593:29
4: alloc::raw_vec::RawVec<T,A>::with_capacity_in
at /rustc/d84b9037541f45dc2c52a41d723265af211c0497/library/alloc/src/raw_vec.rs:160:25
5: alloc::vec::Vec<T,A>::with_capacity_in
at /rustc/d84b9037541f45dc2c52a41d723265af211c0497/library/alloc/src/vec/mod.rs:699:20
6: alloc::vec::Vec<T>::with_capacity
at /rustc/d84b9037541f45dc2c52a41d723265af211c0497/library/alloc/src/vec/mod.rs:481:9
7: cdrs::types::try_i_to_n_bytes
at ./src/types/mod.rs:141:21
8: cdrs::types::test_try_i_to_n_bytes_UNell
at ./src/types/mod.rs:922:13
9: cdrs::types::test_try_i_to_n_bytes_UNell::{{closure}}
at ./src/types/mod.rs:905:33
10: core::ops::function::FnOnce::call_once
at /rustc/d84b9037541f45dc2c52a41d723265af211c0497/library/core/src/ops/function.rs:250:5
11: 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.
Hi, I'm developing a fuzzer to test the safe abstraction, and I fonnd a overflow issue in function
cdrs::types::try_i_to_n_bytes
.Below is a test case:
The panic information is as follows:
I think it's because the type for
bytes
is derived asVec<u8>
based on the function signature: https://github.com/AlexPikalov/cdrs/blob/master/src/types/mod.rs#L140The text was updated successfully, but these errors were encountered: