freebsd-ports/lang/lua53/files/patch-src__ldebug.c
Thomas Zander 0779926ea3 Fix multiple runtime errors and crashes in lua 5.3.4
Details
- Import upstream patches for known runtime errors
  and crashes in lua 5.3.4
  Details, see https://www.lua.org/bugs.html
  in the section on version 5.3.4

PR:		222581
Submitted by:	russ.haley@gmail.com
Approved by:	maintainer timeout
MFH:		2017Q4
2017-11-11 12:48:53 +00:00

10 lines
358 B
C

--- src/ldebug.c.orig 2016-10-19 12:32:10 UTC
+++ src/ldebug.c
@@ -653,6 +653,7 @@ l_noret luaG_runerror (lua_State *L, const char *fmt,
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);