Skip to content

Support a conversion/extraction corner case as usable#2214

Merged
andrewpollock merged 3 commits intogoogle:masterfrom
andrewpollock:handle_edge_case_fixed_commit_only
May 16, 2024
Merged

Support a conversion/extraction corner case as usable#2214
andrewpollock merged 3 commits intogoogle:masterfrom
andrewpollock:handle_edge_case_fixed_commit_only

Conversation

@andrewpollock
Copy link
Copy Markdown
Contributor

@andrewpollock andrewpollock commented May 15, 2024

There is a corner case where there was an unresolvable last_affected version, but a(n assumed) fixed commit (extracted from reference URLs most commonly) and so the failure to resolve the last_affected shouldn't be treated as unusable data overall for conversion.

Harmonize the ordering of potentially unnecessary work in CVEToPackageInfo and CVEToOSV

There is a corner case where there was an unresolvable `last_affected`
version, but a(n assumed) `fixed` commit (extracted from reference URLs
most commonly) and so the failure to resolve the `last_affected`
shouldn't be treated as unusable data overall for conversion.
Order the work so it's only done if necessary, and add the previous edge
case fix to CVEToOSV as well.
@andrewpollock andrewpollock merged commit e813719 into google:master May 16, 2024
@andrewpollock andrewpollock deleted the handle_edge_case_fixed_commit_only branch May 23, 2024 04:55
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.

2 participants