summaryrefslogtreecommitdiff
path: root/dev-lang/lua/files/5.1/0002-Fix-stack-overflow-in-vararg-functions.patch
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-09-05 10:19:58 +0200
committerDavid Seifert <soap@gentoo.org>2022-09-05 10:19:58 +0200
commitfab25cc8ac44fa73bb14821560ac1ba1829447df (patch)
treea8428318c282c5f6ef066443c371fd0c3f257909 /dev-lang/lua/files/5.1/0002-Fix-stack-overflow-in-vararg-functions.patch
parent1dadcd01829b64f07b6edbb4a1c38cba700f482f (diff)
downloadgentoo-fab25cc8ac44fa73bb14821560ac1ba1829447df.tar.gz
gentoo-fab25cc8ac44fa73bb14821560ac1ba1829447df.tar.bz2
gentoo-fab25cc8ac44fa73bb14821560ac1ba1829447df.zip
dev-lang/lua: add 5.1.6
* add two patches from Debian Bug: https://bugs.gentoo.org/472230 Bug: https://bugs.gentoo.org/627330 Bug: https://bugs.gentoo.org/689598 Bug: https://bugs.gentoo.org/706378 Bug: https://bugs.gentoo.org/765712 Bug: https://bugs.gentoo.org/791451 Bug: https://bugs.gentoo.org/834911 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-lang/lua/files/5.1/0002-Fix-stack-overflow-in-vararg-functions.patch')
-rw-r--r--dev-lang/lua/files/5.1/0002-Fix-stack-overflow-in-vararg-functions.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/dev-lang/lua/files/5.1/0002-Fix-stack-overflow-in-vararg-functions.patch b/dev-lang/lua/files/5.1/0002-Fix-stack-overflow-in-vararg-functions.patch
new file mode 100644
index 000000000000..a3e4019a4596
--- /dev/null
+++ b/dev-lang/lua/files/5.1/0002-Fix-stack-overflow-in-vararg-functions.patch
@@ -0,0 +1,17 @@
+https://salsa.debian.org/lua-team/lua5.1/-/blob/master/debian/patches/0004-Fix-stack-overflow-in-vararg-functions.patch
+
+From: Enrico Tassi <gareuselesinge@debian.org>
+Date: Tue, 26 Aug 2014 16:20:55 +0200
+Subject: Fix stack overflow in vararg functions
+
+--- a/src/ldo.c
++++ b/src/ldo.c
+@@ -274,7 +274,7 @@ int luaD_precall (lua_State *L, StkId func, int nresults) {
+ CallInfo *ci;
+ StkId st, base;
+ Proto *p = cl->p;
+- luaD_checkstack(L, p->maxstacksize);
++ luaD_checkstack(L, p->maxstacksize + p->numparams);
+ func = restorestack(L, funcr);
+ if (!p->is_vararg) { /* no varargs? */
+ base = func + 1;