Subject: | Silently accepting bogus MAC address data |
Hi,
I am considering migrating a project of mine from Net::MAC to NetAddr::MAC. One of the things I need to do is sanity check user input by using the module to reject bogus MAC address data.
I found that NetAddr::MAC silently accepts two bogus formats: an empty string, and a short address.
Here are some tests for bogus MAC formats: https://gist.github.com/ollyg/5766262
If you agree these two cases need fixing, I'll fork the project on github and write a patch.
regards,
oliver.