removed buffer overflows introduced in regexp optimizations

This commit is contained in:
Fabrice Bellard
2025-11-22 12:10:55 +01:00
parent 728ed94889
commit a77400796d
2 changed files with 3 additions and 3 deletions

View File

@@ -18022,7 +18022,7 @@ static JSValue JS_CallInternal(JSContext *caller_ctx, JSValueConst func_obj,
{
sp[-2] = JS_NewRegexp(ctx, sp[-2], sp[-1]);
sp--;
if (JS_IsException(sp[-2]))
if (JS_IsException(sp[-1]))
goto exception;
}
BREAK;