Skip to content
Commit 00ce2796 authored by Konrad Weihmann's avatar Konrad Weihmann Committed by Richard Purdie
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>
parent a3e0eec5
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