diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-07-23 00:13:32 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-07-23 00:13:34 +0200 |
| commit | cf6cfc830db89e0031200d1a16c93eb7801cb911 (patch) | |
| tree | 5aba192c62931ba6a4cafa5e80aafa4d1cac2d20 /src/codegen.zig | |
| parent | 600348283fa5ea9646f91997e0a32f4632ca30b8 (diff) | |
| download | zig-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/codegen.zig')
0 files changed, 0 insertions, 0 deletions
