Skip to content

fix: version compare can't handle + in version numbers #3552

Closed
@terriko

Description

@terriko

The new version compare function isn't handling + in version numbers, so I was able to trigger a comparison error when scanning binutils.

We can probably do the same with + as we do with - and _, that is convert it to . and treat it as a separator.

This is probably a pretty easy good first issue for someone: look in cve_bin_tool/version_compare and see where we have code like this for _ and -:

    versionString = versionString.replace("_", ".")

Then add another line to change + to . too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions