Repository navigation
fix(vulnfeeds): support below and or-older version phrases from CVE descriptions - #6512
aeagisenginesec wants to merge 1 commit into
Conversation
…escriptions Fixes google#249 Leading below x.x.x and trailing x.x.x or older, or earlier, or below were not extracted from CVE descriptions. Adds below to the range pattern and or to the trailing inclusive pattern, with table tests and negative tests.
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
This is not assigned to you |
|
Hi @G-Rath, thanks for the note, and I understand the assignment point. @ashutos-h-tiwari is assigned to issue #249 and said he will open a PR by Thursday, December 10, and I already said on the issue I am happy to leave it with him if the maintainers prefer that. I am asking here because this PR is already complete and tested, built on current main in vulnfeeds/conversion/versions.go (the code moved from vulnfeeds/cves/versions.go), adding the two gaps that were left, leading "below x.x.x" and trailing "x.x.x or older" / "or earlier" / "or below", with 5 new table tests and 4 negative cases, and go test ./conversion/... passing. Could you please reopen this PR so it can be reviewed on its merits, or let me know if you would rather keep it closed and have ashutos build on this branch for his December 10 PR? I am also signing the Google CLA now, so the cla/google check will clear. Happy either way, I just did not want a finished, tested fix to be lost on an assignment technicality. Thank you! |
Fixes #249
Leading below x.x.x and trailing x.x.x or older, or earlier, or below were not extracted from CVE descriptions. This adds below to the range pattern and or to the trailing inclusive pattern in vulnfeeds/conversion/versions.go, with 5 new table tests in TestExtractVersionsFromText and a new TestExtractVersionsFromText_NoVersionPhrase with 4 negative cases. Tests: go test ./conversion/... passes, including the new cases.