]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Fix buffer check in bytecode writer.
authorMike Pall <mike>
Thu, 28 Jun 2012 13:13:26 +0000 (15:13 +0200)
committerMike Pall <mike>
Thu, 28 Jun 2012 13:13:26 +0000 (15:13 +0200)
src/lj_bcwrite.c

index ae90727e5cccd210e9075e9c478b3a1d889ee626..4ea868a0b262866255db81204a6d932a0410bc2c 100644 (file)
@@ -178,6 +178,7 @@ static void bcwrite_kgc(BCWriteCtx *ctx, GCproto *pt)
     } else {
       lua_assert(o->gch.gct == ~LJ_TTAB);
       tp = BCDUMP_KGC_TAB;
+      need = 1+2*5;
     }
     /* Write constant type. */
     bcwrite_need(ctx, need);