Projects
Mega:23.03
lua
_service:tar_scm:backport-CVE-2022-28805.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:backport-CVE-2022-28805.patch of Package lua
From 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> --- src/lparser.c | 1 + 1 files changed, 1 insertions(+) diff --git a/src/lparser.c b/src/lparser.c index 284ef1f..0626833 100644 --- a/src/lparser.c +++ b/src/lparser.c @@ -457,6 +457,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] */ } -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2