[Mono-bugs] [Bug 344156] System.Net.IPAddress.TryParse bug

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Nov 30 14:47:16 EST 2007


Gert Driesen <gert.driesen at pandora.be> changed:

           What    |Removed                                         |Added
                 CC|                                                |gert.driesen at pandora.be

--- Comment #1 from Gert Driesen <gert.driesen at pandora.be>  2007-11-30 12:47:15 MST ---
Apparently we explictly consider a zero-length or single blank address as a
valid IPv4 address:

See line 214-215 of IPAddress.cs:

        if (ip.Length == 0 || ip == " ")
                return new IPAddress (0);

Any objection to removing this (and adding unit tests for this), if this
doesn't break any existing unit tests?

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list