Skip to content
Commit 650eaa56 authored by Konrad Weihmann's avatar Konrad Weihmann Committed by Anuj Mittal
Browse files

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: default avatarKonrad Weihmann <kweihmann@outlook.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 00ce2796)
Signed-off-by: default avatarAnuj Mittal <anuj.mittal@intel.com>
parent 532698a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment