]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Use generic trace error for OOM during trace stitching.
authorMike Pall <mike>
Thu, 18 Apr 2024 21:57:53 +0000 (23:57 +0200)
committerMike Pall <mike>
Thu, 18 Apr 2024 21:57:53 +0000 (23:57 +0200)
Thanks to Sergey Kaplun. #1166

src/lj_ffrecord.c

index 03d0e6ece41d1fd25d31e5c339f2f0e7500a0382..923824d9c697df71582ab5b34971ee8cfc75e89b 100644 (file)
@@ -152,6 +152,8 @@ static void recff_stitch(jit_State *J)
   if (errcode) {
     if (errcode == LUA_ERRRUN)
       copyTV(L, L->top-1, L->top + (1 + LJ_FR2));
+    else
+      setintV(L->top-1, (int32_t)LJ_TRERR_RECERR);
     lj_err_throw(L, errcode);  /* Propagate errors. */
   }
 }