Skip to content

Keep every fixed version in the curl importer - #2547

Open
Jean-Regis-M wants to merge 1 commit into
aboutcode-org:mainfrom
Jean-Regis-M:fix/curl-all-fixed-versions
Open

Jean-Regis-M wants to merge 1 commit into
aboutcode-org:mainfrom
Jean-Regis-M:fix/curl-all-fixed-versions

Conversation

@Jean-Regis-M

Copy link
Copy Markdown

Fixes #2546

parse_curl_advisory now reads every fixed event instead of events[1] only.

On today's vuln.json, main drops 166 fixed versions across 66 of 239 advisories. This branch drops none.

  • new test with two release lines; it fails on main (vers:generic/8.20.2) and passes here
  • vulnerabilities/tests/pipelines/v2_importers: 202 passed, 8 failed on Windows. main gives 201 passed with the same 8 failing names
  • black and isort are clean on both files

I did not run a full import into a database. The crash for advisories without a SEMVER range stays with #2214.

curl's vuln.json has one introduced/fixed pair per release line, but only events[1] was read, so later fixed versions were dropped.

Fixes aboutcode-org#2546

Signed-off-by: JEAN REGIS <190766850+Jean-Regis-M@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

curl importer keeps only the first fixed version (166 missing across 66 advisories)

1 participant