File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -35361,7 +35361,12 @@ static JSValue JS_ReadRegExp(BCReaderState *s)
35361
35361
return JS_EXCEPTION;
35362
35362
}
35363
35363
35364
- assert(!bc->is_wide_char);
35364
+ if (bc->is_wide_char) {
35365
+ js_free_string(ctx->rt, pattern);
35366
+ js_free_string(ctx->rt, bc);
35367
+ return JS_ThrowInternalError(ctx, "bad regexp bytecode");
35368
+ }
35369
+
35365
35370
if (is_be())
35366
35371
lre_byte_swap(bc->u.str8, bc->len, /*is_byte_swapped*/TRUE);
35367
35372
Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ function bjson_test_fuzz()
232
232
var corpus = [
233
233
"EBAAAAAABGA=" ,
234
234
"EObm5oIt" ,
235
+ "EAARABMGBgYGBgYGBgYGBv////8QABEALxH/vy8R/78=" ,
235
236
] ;
236
237
for ( var input of corpus ) {
237
238
var buf = base64decode ( input ) ;
You can’t perform that action at this time.
0 commit comments