aboutsummaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-02-27 12:56:09 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-02-27 12:56:09 -0300
commitf9d857a81b87b695c1e3b34f1e7fe55884d1288f (patch)
tree6793853d39d5224971543b79c0ba3d3d45d536f7 /ltm.c
parent1537d6680bb66dc2484e11815bc2cd0e31ca39cc (diff)
downloadlua-f9d857a81b87b695c1e3b34f1e7fe55884d1288f.tar.gz
lua-f9d857a81b87b695c1e3b34f1e7fe55884d1288f.tar.bz2
lua-f9d857a81b87b695c1e3b34f1e7fe55884d1288f.zip
Stack reallocation done in two phases
$he stack reallocation is done in two steps (allocation + free) because the correction of the pointers pointing into the stack must be done while both addresses (the old stack and the new one) are valid. In ISO C, any pointer use after the pointer has been deallocated is undefined behavior. The compiler option '-fsanitize=pointer-subtract' (plus what it needs to work) complained about the old implementation.
Diffstat (limited to 'ltm.c')
0 files changed, 0 insertions, 0 deletions