فهرست منبع

Fix buffer check in bytecode writer.

Mike Pall 13 سال پیش
والد
کامیت
a751c8a5b5
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      src/lj_bcwrite.c

+ 1 - 0
src/lj_bcwrite.c

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