# InternPool: avoid aggregate null bytes storage · gitcafe/zig

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

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

Visibility: public

Requested revision: 0fd52cdc5eb4b17e8066a06d8af761f934cf8808

Requested commit: 0fd52cdc5eb4b17e8066a06d8af761f934cf8808

Commit: 0fd52cdc5eb4b17e8066a06d8af761f934cf8808

Tree: 08adff6a341d9d3eaaeefb21cec0234884e1df1d

Author: mlugg

Committer: Andrew Kelley

## Message

```
InternPool: avoid aggregate null bytes storage

This is a workaround for InternPool currently not handling
non-null-terminated strings. It avoids using the `bytes` storage for
aggregates if there are any null bytes.

In the future this should be changed so that the `bytes` storage can be
used regardless of whether there are any null bytes. This is important
for use cases such as `@embedFile`.

However, this fixes a bug for now, and after this commit, stage2
self-hosts again.

mlugg: stage5 passes all enabled behavior tests on my system.

Commit message edited by Andrew Kelley <andrew@ziglang.org>

```

## Parents

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

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