Skip to content

Comment on Fun with IP address parsing (2020)

Comments

The fact that there are still octal-supporting parsers in the wild means that it is a security bug to accept 0-prefixed addresses as decimal, since they will produce a different valid value.

All the other questions are much safer since they will at worst produce a failure, but it would probably be best to be extra-strict for them too.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.