# Zcu: fix ZOIR cache bugs · gitcafe/zig

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

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

Visibility: public

Requested revision: 87209954a74bbf9b82b7ab24c0389a4a133edd31

Requested commit: 87209954a74bbf9b82b7ab24c0389a4a133edd31

Commit: 87209954a74bbf9b82b7ab24c0389a4a133edd31

Tree: 6f940ec8607aa8a0ab9569b4c805ebacaf3d3801

Author: Mason Remaley

Committer: mlugg

## Message

```
Zcu: fix ZOIR cache bugs

* When saving bigint limbs, we gave the iovec the wrong length, meaning
  bigint data (and the following string and compile error data) was corrupted.
* When updating a stale ZOIR cache, we failed to truncate the file, so
  just wrote more bytes onto the end of the stale cache.

```

## Parents

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

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