Merge remote-tracking branch 'lethosor/fix-memscan-field-offset-oob' into develop

develop
lethosor 2021-08-11 11:16:31 -04:00
commit d2eca8c41d
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 1 additions and 1 deletions

@ -310,7 +310,7 @@ function field_ref(handle,...)
end
function field_offset(type,...)
local tmp = df.new('intptr_t') -- pointer to nullptr
local tmp = df.new('int8_t', df.sizeof(type))
local _, haddr = df.sizeof(tmp)
local handle = df.reinterpret_cast(type, tmp)
local _, addr = df.sizeof(field_ref(handle,...))