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
thread 'path::parser::test_parse_query_dbe03' panicked at src/path/parser.rs:129:42:
attempt to subtract 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_sub_overflow
at /rustc/d84b9037541f45dc2c52a41d723265af211c0497/library/core/src/panicking.rs:179:21
3: ajson::path::parser::parse_query
at ./src/path/parser.rs:129:42
4: ajson::path::parser::test_parse_query_dbe03
at ./src/path/parser.rs:300:13
5: ajson::path::parser::test_parse_query_dbe03::{{closure}}
at ./src/path/parser.rs:291:28
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.
Hi, I'm developing a fuzzer to test the safe abstraction, and I fonnd a overflow issue in function
src/path/parser/parse_query
.Below is a bug triggering code:
The output result is like this:
I'm not sure if it's because some contraints should be added for the unsafe block: https://github.com/importcjj/rust-ajson/blob/master/src/path/parser.rs#L103
The text was updated successfully, but these errors were encountered: