# Prevent reading over a page boundary in \`mem.indexOfSentinel\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 781c3a985c2c6e31c57165c02582aa79c286e431

Requested commit: 781c3a985c2c6e31c57165c02582aa79c286e431

Commit: 781c3a985c2c6e31c57165c02582aa79c286e431

Tree: b7beb0020c37fd91e2fd68eeb8e297be53ad1b31

Author: Carl Åstholm

Committer: Carl Åstholm

## Message

```
Prevent reading over a page boundary in `mem.indexOfSentinel`

The size of the slice element was not correctly taken into account when determining whether a read would cross a page boundary.

```

## Parents

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

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