]> code.ossystems Code Review - openembedded-core.git/commit
cve-check: allow comparison of Vendor as well as Product
authorRoss Burton <ross.burton@intel.com>
Wed, 6 Nov 2019 15:37:32 +0000 (17:37 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Nov 2019 20:44:15 +0000 (20:44 +0000)
commit0851d68b4679a7035029d28091d9a6b21d266c99
treef23a9da614173efb0de6a0ce2b8d3db8f521511e
parent45758c900ff738e58fd37ff809960965867d79f8
cve-check: allow comparison of Vendor as well as Product

Some product names are too vague to be searched without also matching the
vendor, for example Flex could be the parser compiler we ship, or Adobe Flex, or
Apache Flex, or IBM Flex.

If entries in CVE_PRODUCT contain a colon then split it as vendor:product to improve the search.

Also don't use .format() to construct SQL as that can lead to security
issues. Instead, use ? placeholders and lets sqlite3 handle the escaping.

(From OE-Core rev: e6bf90009877d00243417898700d2320fd87b39c)

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