Commit 2ca78d9a authored by Mouse's avatar Mouse

aper: deal with byte paddings by Krzysztof Witek <kwitek@kw-net.com>

commit vlm/asn1c e9e346064b67a0946
parent 100e6229
...@@ -1641,6 +1641,10 @@ SEQUENCE_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, ...@@ -1641,6 +1641,10 @@ SEQUENCE_decode_aper(const asn_codec_ctx_t *opt_codec_ctx,
ASN_DEBUG("Read in extensions bitmap for %s of %ld bits (%x..)", ASN_DEBUG("Read in extensions bitmap for %s of %ld bits (%x..)",
td->name, bmlength, *epres); td->name, bmlength, *epres);
/* Deal with padding */
if (aper_get_align(pd) < 0)
ASN__DECODE_STARVED;
/* Go over extensions and read them in */ /* Go over extensions and read them in */
for(edx = specs->first_extension; edx < td->elements_count; edx++) { for(edx = specs->first_extension; edx < td->elements_count; edx++) {
asn_TYPE_member_t *elm = &td->elements[edx]; asn_TYPE_member_t *elm = &td->elements[edx];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment