aboutsummaryrefslogtreecommitdiff
path: root/lmem.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-02-25 13:39:36 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-02-25 13:39:36 -0300
commite0260eb2d4085723302d637dd8f3fca339d18817 (patch)
treeb9cf6cdaf3c5b3a51c16ef0cf9bb46564e5ce807 /lmem.c
parent5205f073c57ae4b69e90d35c02e3a1a1cca44eb4 (diff)
downloadlua-e0260eb2d4085723302d637dd8f3fca339d18817.tar.gz
lua-e0260eb2d4085723302d637dd8f3fca339d18817.tar.bz2
lua-e0260eb2d4085723302d637dd8f3fca339d18817.zip
Bug (kind of) in 'isinstack'
The function 'isinstack' tried to work around the undefined behavior of subtracting two pointers that do not point to the same object, but the compiler killed to trick. (It optimizes out the safety check, because in a correct execution it will be always true.)
Diffstat (limited to 'lmem.c')
0 files changed, 0 insertions, 0 deletions