diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2023-04-28 13:45:16 +0200 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2023-04-28 13:45:16 +0200 |
commit | 8c5f053f73d748c46c68d1e1ab9515527a502392 (patch) | |
tree | e6535d21a66c68c51ae26a35518f90994821097a /bin | |
parent | d5e7585e26861bf5e1c178c5181f9b35e5b35d7e (diff) |
process-cve-records: clear descriptions for reserved or rejected CVEs
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/process-cve-records | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/process-cve-records b/bin/process-cve-records index 2ab2c2f47f..390fbc64b9 100755 --- a/bin/process-cve-records +++ b/bin/process-cve-records @@ -59,7 +59,9 @@ def parse_record(record, cve): ann = parsers.FlagAnnotation(0, 'REJECTED') cve.annotations.insert(0, ann) - if not is_rejected(record) and not is_reserved(record): + if is_reserved(record) or is_rejected(record): + cve.header.description = '' + else: desc = [desc['value'] for desc in record['containers']['cna']['descriptions'] if desc['lang'].startswith('en')] |