# link/Plan9: fix UAF of symbol names · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/2ad073ec6d4e2be967f18c9907844404a7eed42e)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 2ad073ec6d4e2be967f18c9907844404a7eed42e

Requested commit: 2ad073ec6d4e2be967f18c9907844404a7eed42e

Commit: 2ad073ec6d4e2be967f18c9907844404a7eed42e

Tree: 56c925bd7df84e5f223c31a7c8fa90606c8e2dc9

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
link/Plan9: fix UAF of symbol names

Long term, linker backends will need to manage their own string tables
for things like this because my mandate is: no long-lived pointers
allowed in any of the codepaths touched by incremental compilation, so
that we can serialize and deserialize trivially.

Short term, I solved this with a couple calls to Allocator.dupe,
incurring some harmless leaks.

```

## Parents

- [4b7c1e5c300c471618c9b12646247ef887a3a576](https://git.cafe/gitcafe/zig/commit/4b7c1e5c300c471618c9b12646247ef887a3a576?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/2ad073ec6d4e2be967f18c9907844404a7eed42e?format=markdown)
