summaryrefslogtreecommitdiff
path: root/dev-lang/lua/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-01-22 16:48:54 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-01-22 16:48:54 +0000
commitce163dcd0944d81d8406c9532b457535efca7a6d (patch)
treef7deea170544ce69e03c037101b7b5c1277966b4 /dev-lang/lua/files
parent05ee8049e2326946a2cd1720f98384c864f0a804 (diff)
gentoo auto-resync : 22:01:2024 - 16:48:54
Diffstat (limited to 'dev-lang/lua/files')
-rw-r--r--dev-lang/lua/files/lua-5.4.4-lparser-overread.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/dev-lang/lua/files/lua-5.4.4-lparser-overread.patch b/dev-lang/lua/files/lua-5.4.4-lparser-overread.patch
deleted file mode 100644
index 3e625aa4ffc0..000000000000
--- a/dev-lang/lua/files/lua-5.4.4-lparser-overread.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From https://github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa Mon Sep 17 00:00:00 2001
-From: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
-Date: Tue, 15 Feb 2022 12:28:46 -0300
-Subject: [PATCH] Bug: Lua can generate wrong code when _ENV is <const>
-
---- a/src/lparser.c
-+++ b/src/lparser.c
-@@ -468,6 +468,7 @@ static void singlevar (LexState *ls, expdesc *var) {
- expdesc key;
- singlevaraux(fs, ls->envn, var, 1); /* get environment variable */
- lua_assert(var->k != VVOID); /* this one must exist */
-+ luaK_exp2anyregup(fs, var); /* but could be a constant */
- codestring(&key, varname); /* key is variable name */
- luaK_indexed(fs, var, &key); /* env[varname] */
- }
---- a/tests/attrib.lua
-+++ b/tests/attrib.lua
-@@ -434,6 +434,16 @@ a.aVeryLongName012345678901234567890123456789012345678901234567890123456789 ==
- 10)
-
-
-+do
-+ -- _ENV constant
-+ local function foo ()
-+ local _ENV <const> = 11
-+ X = "hi"
-+ end
-+ local st, msg = pcall(foo)
-+ assert(not st and string.find(msg, "number"))
-+end
-+
-
- -- test of large float/integer indices
-