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

Fix empty version range crash #1215

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

janniclas
Copy link

Fixes #1214 .
I'm not familiar with either this project nor python, so I'm unsure if this is a good solution. However, it solved the issue I described in the linked ticket. Feedback welcome!

@TG1999
Copy link
Member

TG1999 commented Jun 27, 2023

@janniclas thanks for this PR, if you can add some tests to highlight the issues which are fixed by this PR it would be really helpful.

@janniclas
Copy link
Author

Sure, I'll look into it soonish

janniclas and others added 12 commits July 14, 2023 16:41
Signed-off-by: Jan-Niclas Struewer <j.n.struewer@gmail.com>
Signed-off-by: Jan-Niclas Struewer <j.n.struewer@gmail.com>
…ck, as this call can fail due the affected_package to be None.

Signed-off-by: Jan-Niclas Struewer <j.n.struewer@gmail.com>
Signed-off-by: Jan-Niclas Struewer <j.n.struewer@gmail.com>
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
Signed-off-by: Jan-Niclas Struewer <j.n.struewer@gmail.com>
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
Signed-off-by: Jan-Niclas Struewer <j.n.struewer@gmail.com>
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
Signed-off-by: Jan-Niclas Struewer <j.n.struewer@gmail.com>
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
Signed-off-by: Jan-Niclas Struewer <j.n.struewer@gmail.com>
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
Signed-off-by: Jan-Niclas Struewer <j.n.struewer@gmail.com>
…anges

Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
Signed-off-by: Jan-Niclas Struewer <j.n.struewer@gmail.com>
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
Signed-off-by: Jan-Niclas Struewer <j.n.struewer@gmail.com>
Signed-off-by: Jan-Niclas Struewer <j.n.struewer@gmail.com>
@janniclas
Copy link
Author

@TG1999 I added a test case based upon the original input I got when running the vulnerabilities.importers.apache_httpd.ApacheHTTPDImporter .

@TG1999
Copy link
Member

TG1999 commented Jan 9, 2024

@janniclas sorry for late reply, please resolve the merge conflicts : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Failing importer due to missing version range
2 participants