# std.fs: prevent possible integer overflow in Dir.makePath · gitcafe/zig

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

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

Visibility: public

Requested revision: 618398b7d3c0df13dcb3d87540e400665b2c02dc

Requested commit: 618398b7d3c0df13dcb3d87540e400665b2c02dc

Commit: 618398b7d3c0df13dcb3d87540e400665b2c02dc

Tree: 3bd67392b54ffcbc38ed178bbff0119abdce1811

Author: Evan Haas

Committer: Veikka Tuominen

## Message

```
std.fs: prevent possible integer overflow in Dir.makePath

The call to `makeDir` for the top-level component of `sub_path`
can return `error.FileNotFound` if the directory represented by
`self` has been deleted.

Fixes #11397

```

## Parents

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

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