ip-address icon indicating copy to clipboard operation
ip-address copied to clipboard

Vulnerable to octal input data

Open ortexx opened this issue 3 years ago • 1 comments

My library based on yours and I got this issue

So, parse and correctForm functions work only with decimal notation. If we pass '010.1.1.1', we get '10.1.1.1', not '8.1.1.1' as expected.

If we assume to work only with decimal numbers, then '010.1.1.1' should throw an error as an invalid value, otherwise we have to handle it some way(convert to decimal, for example).

ortexx avatar Apr 16 '21 04:04 ortexx

can confirm. See #142 for more examples.

StoneLabs avatar Jul 20 '21 20:07 StoneLabs