summaryrefslogtreecommitdiff
path: root/dev-lang/lua/files/5.1
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-09-05 10:24:06 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-09-05 10:24:06 +0100
commita0f09b2c947909b614c52fcfbdce964469404101 (patch)
tree675a5547be05cbc1b2f8a23d007dbf5ade80ffc7 /dev-lang/lua/files/5.1
parentdff5148a375dbe1b3ec2c5e5e4fa482bd1224c98 (diff)
gentoo auto-resync : 05:09:2022 - 10:24:06
Diffstat (limited to 'dev-lang/lua/files/5.1')
-rw-r--r--dev-lang/lua/files/5.1/0001-extern_C.patch20
-rw-r--r--dev-lang/lua/files/5.1/0002-Fix-stack-overflow-in-vararg-functions.patch17
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-lang/lua/files/5.1/0001-extern_C.patch b/dev-lang/lua/files/5.1/0001-extern_C.patch
new file mode 100644
index 000000000000..6e4f711f0ecd
--- /dev/null
+++ b/dev-lang/lua/files/5.1/0001-extern_C.patch
@@ -0,0 +1,20 @@
+https://salsa.debian.org/lua-team/lua5.1/-/blob/master/debian/patches/0003-extern_C.patch
+
+From: "John V. Belmonte" <jbelmonte@debian.org>
+Date: Tue, 26 Aug 2014 16:20:49 +0200
+Subject: extern_C
+
+--- a/src/luaconf.h.in
++++ b/src/luaconf.h.in
+@@ -168,7 +168,11 @@
+
+ #else
+
++#ifdef __cplusplus
++#define LUA_API extern "C"
++#else
+ #define LUA_API extern
++#endif
+
+ #endif
+
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;