# std.os.execvpe: fix buffer overflow · gitcafe/zig

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

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

Visibility: public

Requested revision: ca9862578903a93089e6aae71bb8641b580bc4f6

Requested commit: ca9862578903a93089e6aae71bb8641b580bc4f6

Commit: ca9862578903a93089e6aae71bb8641b580bc4f6

Tree: d5151a8ea85fb1789d480fad1d840f8200d870f9

Author: Jonathan Marler

Committer: GitHub

## Message

```
std.os.execvpe: fix buffer overflow

The NameTooLong check isn't taking the sentinel 0 into account which
would result in a buffer overflow on the stack.
```

## Parents

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

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