File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38026,6 +38026,10 @@ static JSValue JS_ReadFunctionTag(BCReaderState *s)
3802638026 goto fail;
3802738027 if (bc_get_leb128_int(s, &local_count))
3802838028 goto fail;
38029+ if (local_count < 0 || local_count > JS_MAX_LOCAL_VARS) {
38030+ JS_ThrowSyntaxError(s->ctx, "bad function object");
38031+ goto fail;
38032+ }
3802938033
3803038034 function_size = sizeof(*b);
3803138035 cpool_offset = function_size;
Original file line number Diff line number Diff line change @@ -290,6 +290,7 @@ function bjson_test_fuzz()
290290 [ "FwARABMGBgYGBgYGBgYGBv////8QABEALxH/vy8R/78=" ] ,
291291 [ "FwAIfwAK/////3//////////////////////////////3/8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAD5+fn5+fn5+fn5+fkAAAAAAAYAqw==" ] ,
292292 [ "FwAOAAAAFAA=" , bjson . READ_OBJ_REFERENCE ] ,
293+ [ "FwAMAAAAAAAAAAAAAAAAgICAgAQAAAAA=" , bjson . READ_OBJ_BYTECODE ] ,
293294 ] ;
294295 for ( var [ input , flags ] of corpus ) {
295296 var buf = base64decode ( input ) ;
You can’t perform that action at this time.
0 commit comments