Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve CPE parsing #915

Merged
merged 2 commits into from
Nov 3, 2023
Merged

Improve CPE parsing #915

merged 2 commits into from
Nov 3, 2023

Commits on Nov 3, 2023

  1. Add: Improve error handling for converting a CPE to the URI format

    Raise a descriptive error message during converting a CPE to the URI
    format (CPE v2.2) if transforming a part of the CPE fails.
    bjoernricks committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    174c5fa View commit details
    Browse the repository at this point in the history
  2. Add: Allow parsing CPEs with parts containing a colon

    In the real world CPEs contain escaped colons in the vendor or product
    parts exist. Therefore allow to parse these CPE strings. Currently
    parsing a CPE string like `cpe:2.3:a:foo\\:bar:...` wouldn't work. But
    as far as I can see this is neither a valid CPE nor a real world
    scenario.
    bjoernricks committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    c8814d0 View commit details
    Browse the repository at this point in the history