]> 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, 17 Jul 2019 10:45:36 +0000 (11:45 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Jul 2019 11:15:51 +0000 (12:15 +0100)
commite6bf90009877d00243417898700d2320fd87b39c
treef5076cbe1fe797546dbbf228eaeec98257bb3f1d
parent2501fb402260d5d3929bffee78a1127dad2d538e
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.

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