mirror of https://github.com/OISF/suricata
lua/flowvarlib: sanitize length in LuaFlowvarSet()
LuaFlowvarSet() accepted a script-supplied integer for the copy length without validating it against the actual Lua string length returned by luaL_checkstring. This could lead to OOB memory access. This patch checks the length of the string before using it. Ticket: #8858.pull/16213/head
parent
46fce26900
commit
e281de36c0
Loading…
Reference in New Issue