diff options
author | Ross Burton <ross.burton@intel.com> | 2019-12-08 20:35:57 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-16 22:38:53 +0000 |
commit | c12415cc7ceee43653a70cbc4a8b5a6509f31fce (patch) | |
tree | 4b49b49012d6be2da6c69c62c7250a69804d91d3 /meta/recipes-support/libgcrypt | |
parent | 1ab16a1b7aae7ee9afc6d3e88b13a91c9a656475 (diff) | |
download | poky-c12415cc7ceee43653a70cbc4a8b5a6509f31fce.tar.gz |
cve-check: fetch CVE data once at a time instead of in a single call
This code used to construct a single SQL statement that fetched the NVD data for
every CVE requested. For recipes such as the kernel where there are over 2000
CVEs to report this can hit the variable count limit and the query fails with
"sqlite3.OperationalError: too many SQL variables". The default limit is 999
variables, but some distributions such as Debian set the default to 250000.
As the NVD table has an index on the ID column, whilst requesting the data
CVE-by-CVE is five times slower when working with 2000 CVEs the absolute time
different is insignificant: 0.05s verses 0.01s on my machine.
(From OE-Core rev: 53d0cc1e9b7190fa66d7ff1c59518f91b0128d99)
(From OE-Core rev: 0f5b748a5b7fec41bac16bbc1346230e86bb99e3)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libgcrypt')
0 files changed, 0 insertions, 0 deletions