timmerk / ipaddr-py

Automatically exported from code.google.com/p/ipaddr-py
0 stars 0 forks source link

Parsing IPv6 addresses does not capture some obvious errors #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  python2.4
import google3
import ipaddr

2.  ip=ipaddr.IPAddress('2010:::88888:1')
3.  ip=ipaddr.IPAddress('2010:::68:::::::::::::::ffff')

What is the expected output? What do you see instead?
Expect ValueError in both cases. In the second case, print raises error:
>>> print ip
raise ValueError('IPv6 address is too large')

What version of the product are you using? On what operating system?
Linux Ghardy workstation

Please provide any additional information below.

Original issue reported on code.google.com by bro...@google.com on 20 Jul 2010 at 8:58

GoogleCodeExporter commented 9 years ago

Original comment by ha...@google.com on 21 Jul 2010 at 6:10

GoogleCodeExporter commented 9 years ago
Patch: don't accept grossly invalid IPv6 addresses.

Original comment by lore...@google.com on 13 Aug 2010 at 6:48

Attachments:

GoogleCodeExporter commented 9 years ago
Lorenzo's patch committed as r177.

Original comment by mshields@google.com on 16 Aug 2010 at 11:44