From: Mike Pall Date: Thu, 28 Jun 2012 13:13:26 +0000 (+0200) Subject: Fix buffer check in bytecode writer. X-Git-Tag: v2.0.0-beta11~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a751c8a5b566035c83f47c6c59b16da348dc2b1d;p=thirdparty%2FLuaJIT.git Fix buffer check in bytecode writer. --- diff --git a/src/lj_bcwrite.c b/src/lj_bcwrite.c index ae90727e..4ea868a0 100644 --- a/src/lj_bcwrite.c +++ b/src/lj_bcwrite.c @@ -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);