librasn / rasn

A Safe #[no_std] ASN.1 Codec Framework
Other
183 stars 43 forks source link

fix: decoding integers panic #257

Closed repnop closed 3 weeks ago

repnop commented 3 weeks ago

decoding integers encoded with byte lengths greater than {integer}::BITS / 8 would cause a subtraction underflow and subsequent index panic

XAMPPRocky commented 3 weeks ago

Thank you for your PR!