Skip to content

Vulnerable to octal input data #132

@ortexx

Description

@ortexx

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions