# fix integer overflow in indexOfPosLinear when needle.len \> haystack.len · gitcafe/zig

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

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

Visibility: public

Requested revision: 9727931fda50ae412c47bfd40ad1d1dcd06aada0

Requested commit: 9727931fda50ae412c47bfd40ad1d1dcd06aada0

Commit: 9727931fda50ae412c47bfd40ad1d1dcd06aada0

Tree: 61a4756890a3f39d21a6820adfc5f527bcbc440d

Author: Techatrix

Committer: Techatrix

## Message

```
fix integer overflow in indexOfPosLinear when needle.len > haystack.len

```

## Parents

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

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