Skip to content

Commit

Permalink
bug: set default version for xml2 checker to UNKNOWN (fixes intel#1517)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyharrison committed Jan 12, 2022
1 parent 9f48d52 commit 8f17deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cve_bin_tool/checkers/xml2.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Xml2Checker(Checker):
@staticmethod
def guess_xml2_version(lines):
"""Guesses the xml2 version from the file contents"""
new_guess = ""
new_guess = "UNKNOWN"
pattern1 = re.compile(r"/libxml2-([0-9]+\.[0-9]+\.[0-9]+)/")
pattern2 = re.compile(r"\\libxml2-([0-9]+\.[0-9]+\.[0-9]+)\\")
# fedora 29 string looks like libxml2.so.2.9.8-2.9.8-4.fc29.x86_64.debug
Expand Down

0 comments on commit 8f17deb

Please sign in to comment.