]> 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>
Tue, 10 Dec 2019 15:37:28 +0000 (07:37 -0800)
commit541dc24d974d3e22c45a650c34298eebc45121e8
treebfe1ff82302edf144a07039ba16dab22560b54a7
parentaa197b91e1770925ae1a31ee7334b593bfcdc9e3
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