Skip to content

Commit

Permalink
Relax OCTET_STRING JSON parsing more
Browse files Browse the repository at this point in the history
Practically revert commit that tightens the parsing, to un-break already-existing code.
This follows the IETF approach of being conservative in what you send, but liberal in what you receive.
  • Loading branch information
mouse07410 authored Aug 7, 2024
1 parent 2782c36 commit ab8ed18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions skeletons/OCTET_STRING_jer.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,8 @@ 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) {
/* do not allow tab, space
/* allow tab, space */
case 0x09: case 0x20:
*/
/* allow LF, FF, CR */
case 0x0a: case 0x0c: case 0x0d:
continue;
Expand Down

0 comments on commit ab8ed18

Please sign in to comment.