summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2018-12-04 16:22:01 +0100
committerEmilio Pozuelo Monfort <pochu@debian.org>2018-12-04 16:22:01 +0100
commit0dadd1fa4121225e4cdb09f1f7214ce8582d3974 (patch)
treeea916e9c9ac0ae54351151a5728e3312b5d01f55 /lib
parentd783295632ef25960531534daddddc9bad597259 (diff)
CVEExtendFile: treat TEMP-* entries as unique
Otherwise, they will get rehashed into a different temp name, preventing one to add notes to TEMP entries in an extend file.
Diffstat (limited to 'lib')
-rw-r--r--lib/python/bugs.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/python/bugs.py b/lib/python/bugs.py
index 700a9c0272..570a5f859c 100644
--- a/lib/python/bugs.py
+++ b/lib/python/bugs.py
@@ -789,6 +789,15 @@ class CVEExtendFile(CVEFile):
is_extend = True
+ def isUniqueName(self, name):
+ # an extend file can have TEMP-* entries to refer to the temp values
+ # for e.g. CVE-2018-XXXX. Consider TEMP-* entries as unique, so they
+ # don't get re-hashed and their notes get added to the original entries
+ if name.startswith('TEMP-'):
+ return True
+
+ return CVEFile.isUniqueName(self, name)
+
class DSAFile(FileBase):
"""A DSA file.

© 2014-2024 Faster IT GmbH | imprint | privacy policy