fix(detector/gost/ubuntu): detection logic when esm etc. are mixed #2090
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What did you implement:
With this PR(vulsio/gost#185), patch information for fixes in ESM will now be returned in addition to the main release.
This can result in a situation where an issue is not fixed in the main release, but a fix is released in the ESM.
For example, in the case of
focal
andesm-apps/focal
, as shown below.https://github.com/vulsio/vuls-data-raw-ubuntu-cve-tracker/blob/d0b60209acf5d91d3a7ca49c85550ee907bd8717/2020/CVE-2020-22039.json
Also, even if you make a fix in the ESM, it may remain needed in the main release and be judged as unfixed.
This PR fixes these bugs.
Type of change
How Has This Been Tested?
1. main: needed, esm-apps: fixed; installed version < esm-apps fixed version
before
after
2. main: needed, esm-apps: fixed; installed version(esm) > esm-apps fixed version
before
after
3. main: needed, esm-apps: fixed; installed version(non esm) > esm-apps fixed version
before
after
Checklist:
You don't have to satisfy all of the following.
make fmt
make test
Is this ready for review?: YES
Reference