Skip to content

Commit

Permalink
Fix asn1 tag parsing where a tag is bigger than 256 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Sep 13, 2019
1 parent 265fe8b commit 5675e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x509.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ x509_unpack(unsigned char *bp, int l, unsigned char **dpp, int *dlp, int *clp, i
exit(1);
}
for (; tl > 0; tl--, l--)
ll = ll * 8 + *bp++;
ll = (ll << 8) + *bp++;
tl = ll;
}
}
Expand Down

0 comments on commit 5675e23

Please sign in to comment.