]> code.ossystems Code Review - openembedded-core.git/commit
cve-update-db-native: skip on empty cpe23Uri
authorKonrad Weihmann <kweihmann@outlook.com>
Thu, 22 Apr 2021 16:48:27 +0000 (18:48 +0200)
committerAnuj Mittal <anuj.mittal@intel.com>
Mon, 26 Apr 2021 00:30:51 +0000 (08:30 +0800)
commit650eaa56b83b5698ad7b95337607959e018ff6c0
treef2b0044c66b1c42d55036b92caa96242a07bdf7f
parent532698a83261e3ce53f03d5b063a6978a7592bd1
cve-update-db-native: skip on empty cpe23Uri

Recently an entry in the NVD DB appeared that looks like that
{'vulnerable': True, 'cpe_name': []}.
As besides all the vulnerable flag no data is present we would get
a KeyError exception on acccess.
Use get method on dictionary and return if no meta data is present
Also quit if the length of the array after splitting is less than 6

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 00ce2796d97de2bc376b038d0ea7969088791d34)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-core/meta/cve-update-db-native.bb