mirror of https://gerrit.osmocom.org/asn1c
Fix a bug in asn1c PER code when skipping unknown extension
Basically when skiping an unknown extension, asn1c did read 24 bits per 24 bits and later on failed if the remaining bits (up to 23) were superior to 8. The patch reads 1 bit per 1 bit. (imported from openairinterface5g/openair2/RRC/LITE/MESSAGES/asn1c/asn1cpatch.p0)
This commit is contained in:
parent
50823b8139
commit
539d484434
|
@ -306,7 +306,7 @@ uper_sot_suck(asn_codec_ctx_t *ctx, asn_TYPE_descriptor_t *td,
|
||||||
(void)constraints;
|
(void)constraints;
|
||||||
(void)sptr;
|
(void)sptr;
|
||||||
|
|
||||||
while(per_get_few_bits(pd, 24) >= 0);
|
while(per_get_few_bits(pd, 1) >= 0);
|
||||||
|
|
||||||
rv.code = RC_OK;
|
rv.code = RC_OK;
|
||||||
rv.consumed = pd->moved;
|
rv.consumed = pd->moved;
|
||||||
|
|
Loading…
Reference in New Issue