about summary refs log tree commit diff
path: root/library/std/src/net/parser/tests.rs
AgeCommit message (Collapse)AuthorLines
2023-02-26Move IpAddr and SocketAddr to coreLinus Färnstrand-149/+0
2021-03-30Disallow octal format in Ipv4 stringCheng XU-0/+8
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
2020-10-06Parse SocketAddrV6::scope_idTamir Duberstein-2/+4
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-0/+139
Also doing fmt inplace as requested.