Subject: | Very narrow input bug or Easter egg on non-IP input |
Date: | Thu, 03 Apr 2014 17:45:04 -0400 |
To: | bug-NetAddr-IP [...] rt.cpan.org |
From: | Kris Deugau <kdeugau [...] vianet.ca> |
I've come across something that's either a bug or an Easter egg - I'm
not sure which. It came up in a long-shot coincidence in my test data.
When you feed this string to new():
knurd.5.0.0.0.b.0.0.b.5.b.0.b.f.e.e.b.d.a.e.d.ip6.arpa
it creates a NetAddr::IP for 192.168.7.6/32.
Any single-character changes whitespace at the beginning or end, and
various substrings I've tried result in no NetAddr::IP object, as I
would expect on a more or less random string.
-kgd