Skip to content

Commit

Permalink
fix oob read in lua ffi code
Browse files Browse the repository at this point in the history
  • Loading branch information
tremwil committed Aug 2, 2024
1 parent 554bd28 commit 16e7b26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ end
function executeEzStateEvent(id, parameterArray);
parameterArray = parameterArray or {}
table.insert(parameterArray, 1, id)
local args = allocateMemory(12 * #parameterArray)
local args = allocateMemory(16 * #parameterArray)
local encoderMap = {
integer = { n = 2, fun = writeInteger },
number = { n = 1, fun = writeFloat }
Expand Down

0 comments on commit 16e7b26

Please sign in to comment.