Skip to content

Commit eebe8bc

Browse files
author
czjaso
committed
Fix escape sequence parsing to reject invalid control character escapes
1 parent 10fd66c commit eebe8bc

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

source/core_json.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -477,14 +477,6 @@ static bool skipEscape( const char * buf,
477477
break;
478478

479479
default:
480-
481-
/* a control character: (NUL,SPACE) */
482-
if( iscntrl_( c ) )
483-
{
484-
i += 2U;
485-
ret = true;
486-
}
487-
488480
break;
489481
}
490482
}

0 commit comments

Comments
 (0)