[Git][security-tracker-team/security-tracker][master] CVEExtendFile: treat TEMP-* entries as unique

Emilio Pozuelo Monfort pochu at debian.org
Tue Dec 4 15:24:25 GMT 2018


Emilio Pozuelo Monfort pushed to branch master at Debian Security Tracker / security-tracker


Commits:
66af7a86 by Emilio Pozuelo Monfort at 2018-12-04T15:22:01Z
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.

- - - - -


1 changed file:

- lib/python/bugs.py


Changes:

=====================================
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.
 



View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/commit/66af7a86e455ecc8d2d59d8fdd7264bf60edb1c4

-- 
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/commit/66af7a86e455ecc8d2d59d8fdd7264bf60edb1c4
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20181204/d6b8bfdb/attachment.html>


More information about the debian-security-tracker-commits mailing list