Skip to content

Commit

Permalink
jer: Reject non-continuous OCTET STRING
Browse files Browse the repository at this point in the history
  • Loading branch information
v0-e committed Jun 20, 2024
1 parent 998e7ea commit cd847df
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions skeletons/OCTET_STRING_jer.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,6 @@ static ssize_t OCTET_STRING__convert_hexadecimal(void *sptr, const void *chunk_b
for(; p < pend; p++) {
int ch = *(const unsigned char *)p;
switch(ch) {
case 0x09: case 0x0a: case 0x0c: case 0x0d:
case 0x20:
/* Ignore whitespace */
continue;
case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: /*01234*/
case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: /*56789*/
clv = (clv << 4) + (ch - 0x30);
Expand Down

0 comments on commit cd847df

Please sign in to comment.