aboutsummaryrefslogtreecommitdiff
path: root/src/zig_clang_driver.cpp
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-07-23 00:13:32 +0200
committerJakub Konka <kubkon@jakubkonka.com>2022-07-23 00:13:34 +0200
commitcf6cfc830db89e0031200d1a16c93eb7801cb911 (patch)
tree5aba192c62931ba6a4cafa5e80aafa4d1cac2d20 /src/zig_clang_driver.cpp
parent600348283fa5ea9646f91997e0a32f4632ca30b8 (diff)
downloadzig-cf6cfc830db89e0031200d1a16c93eb7801cb911.tar.gz
zig-cf6cfc830db89e0031200d1a16c93eb7801cb911.zip
macho: fix use-after-move in placeDecl
Previously, we would get a pointer to a slot in the symbol table, apply changes to the symbol, and return the pointer. This however didn't take into account that the symbol table may be moved in memory in-between the modification and return from the function (`fn placeDecl`). Prior to my rewrite, this was not possible within the body of the said function. However, my rewrite revamped how we allocate GOT atoms and their matching symtab indexes, which now may cause a move in memory of the container.
Diffstat (limited to 'src/zig_clang_driver.cpp')
0 files changed, 0 insertions, 0 deletions