# Ip4Address parser: reject 0-prefixed components \(\#9538\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 2ccd023c6ae590b4ff311814ccf5ff508c7669ef

Requested commit: 2ccd023c6ae590b4ff311814ccf5ff508c7669ef

Commit: 2ccd023c6ae590b4ff311814ccf5ff508c7669ef

Tree: 6d3e420271225b5e5d22bf8f1d1e9666d8eb01e8

Author: Frank Denis

Committer: GitHub

## Message

```
Ip4Address parser: reject 0-prefixed components (#9538)

Some parsers interpret these as octal, some don't, and the confusion can lead to vulnerabilities.

Return error.NonCanonical when parsing IPv4 addresses with 0 prefixes.
```

## Parents

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

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