Skip to content

Commit 076e16f

Browse files
bug: set default version for xml2 checker to UNKNOWN (fixes intel#1517)
1 parent 53be88a commit 076e16f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cve_bin_tool/checkers/xml2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Xml2Checker(Checker):
2828
@staticmethod
2929
def guess_xml2_version(lines):
3030
"""Guesses the xml2 version from the file contents"""
31-
new_guess = ""
31+
new_guess = "UNKNOWN"
3232
pattern1 = re.compile(r"/libxml2-([0-9]+\.[0-9]+\.[0-9]+)/")
3333
pattern2 = re.compile(r"\\libxml2-([0-9]+\.[0-9]+\.[0-9]+)\\")
3434
# fedora 29 string looks like libxml2.so.2.9.8-2.9.8-4.fc29.x86_64.debug

0 commit comments

Comments
 (0)