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
use pgp::de::Deserialize;fnmain(){let data = [5,2,2,11,0,2,0,0];let _ = pgp::Signature::from_slice(pgp::types::Version::New,&data);}
Error:
thread 'main' panicked at 'attempt to subtract with overflow', /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/pgp-0.7.2/src/packet/signature/de.rs:316:29
stack backtrace:0: rust_begin_unwind
at /rustc/891ca5f63c3b3cfe3939710a728671243e881ed6/library/std/src/panicking.rs:498:51: core::panicking::panic_fmt
at /rustc/891ca5f63c3b3cfe3939710a728671243e881ed6/library/core/src/panicking.rs:106:142: core::panicking::panic
at /rustc/891ca5f63c3b3cfe3939710a728671243e881ed6/library/core/src/panicking.rs:47:53: pgp::packet::signature::de::subpackets
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/pgp-0.7.2/src/packet/signature/de.rs:316:294: pgp::packet::signature::de::v4_parser::{{closure}}
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-4.2.3/src/simple_errors.rs:195:155: core::result::Result<T,E>::and_then
at /rustc/891ca5f63c3b3cfe3939710a728671243e881ed6/library/core/src/result.rs:966:226: pgp::packet::signature::de::v4_parser
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-4.2.3/src/macros.rs:239:137: pgp::packet::signature::de::parse
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-4.2.3/src/macros.rs:239:138: pgp::packet::signature::de::<impl pgp::de::Deserializefor pgp::packet::signature::types::Signature>::from_slice
at /home/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/pgp-0.7.2/src/packet/signature/de.rs:25:239: scratchbZarvjayp::main
at ./src/main.rs:5:1310: core::ops::function::FnOnce::call_once
at /rustc/891ca5f63c3b3cfe3939710a728671243e881ed6/library/core/src/ops/function.rs:227:5
note:Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
The text was updated successfully, but these errors were encountered:
Reproduction code:
Error:
The text was updated successfully, but these errors were encountered: