mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 15:34:09 +00:00
Fix for DynASM buffer overflow.
Need to include all actions with arguments against MAXSECPOS.
This commit is contained in:
parent
e6eb12b268
commit
12602d2a1f
@ -117,7 +117,7 @@ local function waction(action, val, a, num)
|
|||||||
wputxhw(w)
|
wputxhw(w)
|
||||||
if val then wputxhw(val) end -- Not sure about this, do we always have one arg?
|
if val then wputxhw(val) end -- Not sure about this, do we always have one arg?
|
||||||
if a then actargs[#actargs+1] = a end
|
if a then actargs[#actargs+1] = a end
|
||||||
if a or num then secpos = secpos + (num or 1) end
|
if val or a or num then secpos = secpos + (num or 1) end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Flush action list (intervening C code or buffer pos overflow).
|
-- Flush action list (intervening C code or buffer pos overflow).
|
||||||
|
Loading…
Reference in New Issue
Block a user