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

Deduplicate affected versions #1133

Merged

Conversation

andrewpollock
Copy link
Contributor

This adds some preliminary test coverage to ExtractVersionInfo and avoids adding duplicates toAffectedVersion, preventing duplicate commit hashes getting added further downstream when they are mapped.

This highlights the potential need to look more holistically at the nodes when extracting versions, because each one could be for a completely different CPE...

This way we don't wind up with duplicated commits when we map versions
to commits.

This does highlight some potential simplistic treatment of CVEs with
multiple CPEs.
It has a good example encountered in the wild where duplicate versions
and therefore commits were extracted
@andrewpollock andrewpollock merged commit fc10056 into google:master Mar 17, 2023
@andrewpollock andrewpollock deleted the deduplicate_affected_versions branch May 23, 2024 05:08
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.

None yet

2 participants