# std.tar: test buffers provided to the iterator · gitcafe/zig

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

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

Visibility: public

Requested revision: 04e8bbd932c9ce9ac99230a656c8951c467d5b24

Requested commit: 04e8bbd932c9ce9ac99230a656c8951c467d5b24

Commit: 04e8bbd932c9ce9ac99230a656c8951c467d5b24

Tree: de49098bcca42adc48cab6ffe77490b79d486a7b

Author: Igor Anić

Committer: Igor Anić

## Message

```
std.tar: test buffers provided to the iterator

Tar header stores name in max 256 bytes and link name in max 100 bytes.
Those are minimums for provided buffers. Error is raised during iterator
init if buffers are not long enough.

Pax and gnu extensions can store longer names. If such extension is
reached during unpack and don't fit into provided buffer error is
returned.

```

## Parents

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

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