aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroux <roux@mycompany.com>2016-04-30 16:03:12 +0200
committerHarald Welte <laforge@gnumonks.org>2016-04-30 17:37:56 +0200
commit539d484434be91eeab55e0eff3ce63cfe3a2453a (patch)
treec3a2c6bad6693eef1b6999232012546a7025c616
parent50823b81391418465f378a73aa4a3e92af6d0f27 (diff)
Fix a bug in asn1c PER code when skipping unknown extensionaper
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 984a96dd..8c42f8be 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;