# compiler: avoid use of undefined memory · gitcafe/zig

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

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

Visibility: public

Requested revision: f1c900c72e0d941fb2ab87197485c710fc95450b

Requested commit: f1c900c72e0d941fb2ab87197485c710fc95450b

Commit: f1c900c72e0d941fb2ab87197485c710fc95450b

Tree: 60c39eb03de5d0a54a5a33c871169678a2ba940c

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
compiler: avoid use of undefined memory

InternPool is nice in some ways but it also comes with its own set of
footguns. This commit fixes 5 instances. I see quite a few Valgrind
warnings remaining when running the behavior tests.

Perhaps the solution is to have stringToSlice return a struct with start
and length as indexes, which has a format function?

```

## Parents

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

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