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

CPE22 - Invalid language '-' #39

Open
thegrymek opened this issue Dec 14, 2018 · 0 comments
Open

CPE22 - Invalid language '-' #39

thegrymek opened this issue Dec 14, 2018 · 0 comments
Labels

Comments

@thegrymek
Copy link

Hi,

After download nvd cpe in 2.2 version I found out there a bug.

>>> import cpe
>>> cpe.CPE('cpe:/a:ibm:powervc:1.2.1.1:-:~-~standard~~~:-', cpe.CPE.VERSION_2_2)
    Traceback (most recent call last):
    ...
    File ".../cpe/comp/cpecomp_simple.py", line 250, in _parse
       raise ValueError(errmsg)
ValueError: Invalid value of attribute 'language': -

This CPE is downloaded from nvd cpe
Official scheme says that - is allowed in language part.

[c][pP][eE]:/[AHOaho]?(:[A-Za-z0-9\._\-~%]*){0,6}

https://cpe.mitre.org/specification/2.2/cpe-dictionary_2.2.xsd

@nilp0inter nilp0inter added the bug label Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants