Skip to content

Commit

Permalink
keep SizeConstraints extensible
Browse files Browse the repository at this point in the history
Fix vlm#290, vlm#383, vlm#470 where APC_EXTENSIBLE is lost for SEQUENCE SIZE(, ...) OF
  • Loading branch information
riebl committed Oct 31, 2020
1 parent 00fa516 commit 1484dd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libasn1fix/asn1fix_constraint.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ _remove_extensions(arg_t *arg, asn1p_constraint_t *ct, int forgive_last) {

if(!ct) return;

/* Keep extensible SizeConstraint */
if(ct->type == ACT_CT_SIZE && forgive_last) return;

for(i = 0; i < ct->el_count; i++) {
if(ct->elements[i]->type == ACT_EL_EXT)
break;
Expand Down

0 comments on commit 1484dd7

Please sign in to comment.