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
commit66af7a86e455ecc8d2d59d8fdd7264bf60edb1c4 (patch)
tree575bca7a2201ef62ac798c230d5f9856629ccf6b /lib
parentf64e71826a94ca6626dd23f77276e0654dc642ab (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