# std.Progress: truncate IPC data exceeding preallocated buffers · gitcafe/zig

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

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

Visibility: public

Requested revision: 52ed54d1e7a396f4508829af45c6953f1a827a1c

Requested commit: 52ed54d1e7a396f4508829af45c6953f1a827a1c

Commit: 52ed54d1e7a396f4508829af45c6953f1a827a1c

Tree: 3b2756974b8ed75be3cf1b79fb45476599fe1632

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Progress: truncate IPC data exceeding preallocated buffers

This accomplishes 2 things simultaneously:

1. Don't trust child process data; if the data is outside the expected
   range, ignore the data.
2. If there is too much data to fit in the preallocated buffers, drop
   the data.

```

## Parents

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

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