diff options
| author | Konrad Weihmann <kweihmann@outlook.com> | 2021-04-22 18:48:27 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-23 10:06:04 +0100 |
| commit | df2a1f37f77d19e62a5fbdb462a9b24e104f0448 (patch) | |
| tree | 6a908862b34be3bad1ed17061db77deaa92d1d10 /scripts/contrib | |
| parent | d5eb86b3aa2fe41c39845c5dc9a7d50d86736509 (diff) | |
| download | poky-df2a1f37f77d19e62a5fbdb462a9b24e104f0448.tar.gz | |
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
(From OE-Core rev: 00ce2796d97de2bc376b038d0ea7969088791d34)
Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib')
0 files changed, 0 insertions, 0 deletions
