aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua5.3/CVE-2019-6706-use-after-free-lua_upvaluejoin.patch
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2020-10-04 01:31:52 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-10-04 07:10:34 +0000
commit6d2848b0016d85f69ae0ec8efac22736dd28e6e8 (patch)
tree056cbef5e5f12375ee08d24c31c66125b26c87e0 /main/lua5.3/CVE-2019-6706-use-after-free-lua_upvaluejoin.patch
parent2d054b5ab4e68eae5558d7f1951f399c051946bc (diff)
downloadaports-6d2848b0016d85f69ae0ec8efac22736dd28e6e8.tar.gz
aports-6d2848b0016d85f69ae0ec8efac22736dd28e6e8.tar.bz2
aports-6d2848b0016d85f69ae0ec8efac22736dd28e6e8.tar.xz
main/lua5.3: upgrade to 5.3.6
Diffstat (limited to 'main/lua5.3/CVE-2019-6706-use-after-free-lua_upvaluejoin.patch')
-rw-r--r--main/lua5.3/CVE-2019-6706-use-after-free-lua_upvaluejoin.patch24
1 files changed, 0 insertions, 24 deletions
diff --git a/main/lua5.3/CVE-2019-6706-use-after-free-lua_upvaluejoin.patch b/main/lua5.3/CVE-2019-6706-use-after-free-lua_upvaluejoin.patch
deleted file mode 100644
index ea26696fda..0000000000
--- a/main/lua5.3/CVE-2019-6706-use-after-free-lua_upvaluejoin.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-http://lua.2524044.n2.nabble.com/CVE-2019-6706-use-after-free-in-lua-upvaluejoin-function-tc7685575.html
-
---- a/src/lapi.c
-+++ b/src/lapi.c
-@@ -1285,14 +1285,14 @@ LUA_API void *lua_upvalueid (lua_State *
-
- LUA_API void lua_upvaluejoin (lua_State *L, int fidx1, int n1,
- int fidx2, int n2) {
-- LClosure *f1;
-- UpVal **up1 = getupvalref(L, fidx1, n1, &f1);
-+ UpVal **up1 = getupvalref(L, fidx1, n1, NULL); /* the last parameter not needed */
- UpVal **up2 = getupvalref(L, fidx2, n2, NULL);
-+ if (*up1 == *up2) return; /* Already joined */
-+ (*up2)->refcount++;
-+ if (upisopen(*up2)) (*up2)->u.open.touched = 1;
-+ luaC_upvalbarrier(L, *up2);
- luaC_upvdeccount(L, *up1);
- *up1 = *up2;
-- (*up1)->refcount++;
-- if (upisopen(*up1)) (*up1)->u.open.touched = 1;
-- luaC_upvalbarrier(L, *up1);
- }
-
-