aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroux <roux@mycompany.com>2016-04-30 16:03:12 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2016-07-06 17:05:48 +0200
commit840ee6d2c7f204f3da90485591f6402611040a39 (patch)
treec81fcca8d01ee65c13d1acef3a99995776e996b4
parent17c282425afa75b5672e0efa0abcb5cb448f177e (diff)
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)
-rw-r--r--skeletons/per_opentype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/skeletons/per_opentype.c b/skeletons/per_opentype.c
index eb82bbcd..e5b64f4e 100644
--- a/skeletons/per_opentype.c
+++ b/skeletons/per_opentype.c
@@ -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;