# std: Add more error checking in hexToBytes · gitcafe/zig

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

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

Visibility: public

Requested revision: 057bf1afc9933e32bd35842d2464dab2164f06fb

Requested commit: 057bf1afc9933e32bd35842d2464dab2164f06fb

Commit: 057bf1afc9933e32bd35842d2464dab2164f06fb

Tree: d2558c79df9c458d84a1c9c645cb7bcc3ed58ebe

Author: LemonBoy

Committer: Veikka Tuominen

## Message

```
std: Add more error checking in hexToBytes

Prevent the function from turning into an endless loop that may or may
not perform OOB accesses.

```

## Parents

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

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