Fix for DynASM buffer overflow.

Need to include all actions with arguments against MAXSECPOS.
This commit is contained in:
Michael Munday 2016-12-29 16:50:58 -05:00
parent e6eb12b268
commit 12602d2a1f

View File

@ -117,7 +117,7 @@ local function waction(action, val, a, num)
wputxhw(w)
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 or num then secpos = secpos + (num or 1) end
if val or a or num then secpos = secpos + (num or 1) end
end
-- Flush action list (intervening C code or buffer pos overflow).