# \`std.coff\`: check strtab lengths against \`data\` length · gitcafe/zig

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

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

Visibility: public

Requested revision: 7e1af51c4d04b82bd95323f46b8976deed90aad8

Requested commit: 7e1af51c4d04b82bd95323f46b8976deed90aad8

Commit: 7e1af51c4d04b82bd95323f46b8976deed90aad8

Tree: be64dfaacc0bc496f4b850c67ea9d58e1e74ca9b

Author: Rohlem

Committer: Andrew Kelley

## Message

```
`std.coff`: check strtab lengths against `data` length

Fixes illegal behavior. Invalid-length sections are now skipped in `Coff.getSectionByName`.
```

## Parents

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

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