c98100429071a2dca3191c0d0dfa17cd64fcdda2
When slicing a string, you get a panic if you do so at any point
other than at a character boundary. This happened in the
implementation of UTCTime parsing.
This bug was introduced in bc156c36d7,
and appears to affect only version 0.6.0.
I've tried using the clippy::string_slice lint to confirm that there
are not any other string slices in this code.
Fixes bug #27. Found via fuzzing.
Overview
This is a simple library for parsing DER-encoded data.
In particular, this library automates the process of understanding the DER encoded objects in an ASN.1 data stream. These tokens can then be parsed by your library, based on the ASN.1 description in your format.
For convenience, we create the traits ToASN1 and FromASN to abstract the
ability to decode a type from an ASN.1 token stream. If your type implements one
of these traits, your program or library can then use the convenience functions
der_encode and der_decode to do all the parsing work in one action.
Patches welcome!
Languages
Rust
100%