about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorCheng XU <git@xuc.me>2021-03-30 10:24:23 +0800
committerCheng XU <git@xuc.me>2021-03-30 10:24:23 +0800
commit974192cd98b3efca8e5cd293f641f561e7487b30 (patch)
tree24dcd22450f5d66a050914c2e3f37a2021efcc99 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent3aedcf06b73fc36feeebca3d579e1d2a6c40acc5 (diff)
downloadrust-974192cd98b3efca8e5cd293f641f561e7487b30.tar.gz
rust-974192cd98b3efca8e5cd293f641f561e7487b30.zip
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
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions