]> code.ossystems Code Review - openembedded-core.git/commit
cve-check: rewrite look to fix false negatives
authorRoss Burton <ross.burton@intel.com>
Sun, 8 Dec 2019 18:35:55 +0000 (20:35 +0200)
committerArmin Kuster <akuster808@gmail.com>
Mon, 23 Dec 2019 04:26:29 +0000 (20:26 -0800)
commit9948dd86d100bec56e22e6c0bbf4759925a4b306
tree5ba010730c4b9f5cf948093630a2365c633bd739
parent2ddf1c0bc4267d38069f9dbb0f716fdac29a49a9
cve-check: rewrite look to fix false negatives

A previous optimisation was premature and resulted in false-negatives in the report.

Rewrite the checking algorithm to first get the list of potential CVEs by
vendor:product, then iterate through every matching CPE for that CVE to
determine if the bounds match or not.  By doing this in two stages we can know
if we've checked every CPE, instead of accidentally breaking out of the scan too
early.

(From OE-Core rev: d61aff9e22704ad69df1f7ab0f8784f4e7cc0c69)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/cve-check.bbclass