Files
rust/library/std/src/net
Cheng XU 974192cd98 Disallow octal format in Ipv4 string
In its original specification, leading zero in Ipv4 string is interpreted
as octal literals. So a IP address 0127.0.0.1 actually means 87.0.0.1.

This confusion can lead to many security vulnerabilities. Therefore, in
[IETF RFC 6943], it suggests to disallow octal/hexadecimal format in Ipv4
string all together.

Existing implementation already disallows hexadecimal numbers. This commit
makes Parser reject octal numbers.

Fixes #83648.

[IETF RFC 6943]: https://tools.ietf.org/html/rfc6943#section-3.1.1
2021-03-30 10:24:23 +08:00
..
2021-01-20 04:31:34 +00:00
2020-10-13 17:01:50 -04:00
2021-03-30 10:24:23 +08:00
2021-03-30 10:24:23 +08:00
2020-11-22 17:11:41 -05:00
2020-07-27 19:51:13 -05:00