# fix crash in tar found by fuzzing · gitcafe/zig

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

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

Visibility: public

Requested revision: 30f15e3afe38afb6b8c1a378c326d29d2ebab378

Requested commit: 30f15e3afe38afb6b8c1a378c326d29d2ebab378

Commit: 30f15e3afe38afb6b8c1a378c326d29d2ebab378

Tree: 04c2203cdeecdca028093b4d1d58853210d914fc

Author: Igor Anić

Committer: Andrew Kelley

## Message

```
fix crash in tar found by fuzzing

Running fuzzing tar test with [zig std lib
fuzzing](https://github.com/squeek502/zig-std-lib-fuzzing) reached and
assert in tar implementation. Assert (in std lib) should not be
reachable by external input, so I'm fixing this to return error.

```

## Parents

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

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