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:
roux 2016-04-30 16:03:12 +02:00 committed by Harald Welte
parent 50823b8139
commit 539d484434
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ uper_sot_suck(asn_codec_ctx_t *ctx, asn_TYPE_descriptor_t *td,
(void)constraints;
(void)sptr;
while(per_get_few_bits(pd, 24) >= 0);
while(per_get_few_bits(pd, 1) >= 0);
rv.code = RC_OK;
rv.consumed = pd->moved;