Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mit/lua/dist/src Apply a bug fix from lua.org/bugs....



details:   https://anonhg.NetBSD.org/src/rev/2983a506b61c
branches:  trunk
changeset: 355570:2983a506b61c
user:      mbalmer <mbalmer%NetBSD.org@localhost>
date:      Thu Aug 03 13:40:07 2017 +0000

description:
Apply a bug fix from lua.org/bugs.html:  Lua does not check GC when creating
error messages.

diffstat:

 external/mit/lua/dist/src/ldebug.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 583ec71e6a25 -r 2983a506b61c external/mit/lua/dist/src/ldebug.c
--- a/external/mit/lua/dist/src/ldebug.c        Thu Aug 03 12:34:32 2017 +0000
+++ b/external/mit/lua/dist/src/ldebug.c        Thu Aug 03 13:40:07 2017 +0000
@@ -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 @@
   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);



Home | Main Index | Thread Index | Old Index