Skip to content

Commit

Permalink
Merge pull request #140 from velichkov/mouse07410_issues134
Browse files Browse the repository at this point in the history
  • Loading branch information
mouse07410 authored Nov 14, 2023
2 parents 29ef59b + 4e28be0 commit 3e6592b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions skeletons/constr_CHOICE_aper.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ CHOICE_decode_aper(const asn_codec_ctx_t *opt_codec_ctx,
value = per_get_few_bits(pd, 1);
if(value < 0) ASN__DECODE_STARVED;
if(value) ct = 0; /* Not restricted */
if((unsigned)value >= td->elements_count)
ASN__DECODE_FAILED;
}

if(ct && ct->range_bits >= 0) {
Expand Down

0 comments on commit 3e6592b

Please sign in to comment.