ystero-dev / hampi

Rust ASN.1 Toolkit
Other
43 stars 18 forks source link

fix sequence-of decoding for empty sequence-of's #93

Closed bryancoxwell closed 1 year ago

bryancoxwell commented 1 year ago

I fixed an issue where an empty SEQUENCE-OF value would cause the decoder to loop until it consumed all the remaining bits and then error out.

I also added a test case to the examples directory showing the decoding of an LTE SIB1 value which has an empty SEQUENCE-OF value.