Module Name: src
Committed By: mbalmer
Date: Thu Aug 3 13:40:07 UTC 2017
Modified Files:
src/external/mit/lua/dist/src: ldebug.c
Log Message:
Apply a bug fix from lua.org/bugs.html: Lua does not check GC when creating
error messages.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/mit/lua/dist/src/ldebug.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/mit/lua/dist/src/ldebug.c
diff -u src/external/mit/lua/dist/src/ldebug.c:1.9 src/external/mit/lua/dist/src/ldebug.c:1.10
--- src/external/mit/lua/dist/src/ldebug.c:1.9 Wed Apr 26 13:17:33 2017
+++ src/external/mit/lua/dist/src/ldebug.c Thu Aug 3 13:40:07 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: ldebug.c,v 1.9 2017/04/26 13:17:33 mbalmer Exp $ */
+/* $NetBSD: ldebug.c,v 1.10 2017/08/03 13:40:07 mbalmer Exp $ */
/*
** Id: ldebug.c,v 2.121 2016/10/19 12:32:10 roberto Exp
@@ -661,6 +661,7 @@ l_noret luaG_runerror (lua_State *L, con
CallInfo *ci = L->ci;
const char *msg;
va_list argp;
+ luaC_checkGC(L); /* error message uses memory */
va_start(argp, fmt);
msg = luaO_pushvfstring(L, fmt, argp); /* format message */
va_end(argp);