summary refs log tree commit diff stats
path: root/lib/pure/bitops.nim
diff options
context:
space:
mode:
authorChristian Ulrich <christian@ulrich.earth>2021-08-08 20:11:07 +0200
committerGitHub <noreply@github.com>2021-08-08 19:11:07 +0100
commit0d3af5454b66dfe4a8a7017030708a890207c658 (patch)
tree32dd25fee0eff0089748d2426fac41e5e23fe8a2 /lib/pure/bitops.nim
parenteb19db6595846c92e5eb999d96605fe4bb0934f7 (diff)
downloadNim-0d3af5454b66dfe4a8a7017030708a890207c658.tar.gz
Only allow IPv4 literals in strict form (#18656)
* Only allow IPv4 literals in strict form

The strict form as defined in RFC 6943, section 3.1.1 only allows the dotted
form ddd.ddd.ddd.ddd of IPv4 literals, where ddd is a one to three digit decimal
number between 0 and 255. Until now octal numbers (with a leading zero) were
interpreted as decimal numbers which has security implications, see
CVE-2021-29922 and CVE-2021-29923.

* Update lib/pure/net.nim

Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
Diffstat (limited to 'lib/pure/bitops.nim')
0 files changed, 0 insertions, 0 deletions