Skip to content

Commit

Permalink
fix: set default version for xml2 checker to UNKNOWN (Fixes #1517) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyharrison authored Jan 26, 2022
1 parent c80b345 commit 3794f10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cve_bin_tool/checkers/xml2.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def guess_xml2_version(lines):
new_guess2 = match.group(1).strip()
if len(new_guess2) > len(new_guess):
new_guess = new_guess2
return new_guess
# If no version guessed, set version to UNKNOWN
return new_guess or "UNKNOWN"

def get_version(self, lines, filename):
version_info = super().get_version(lines, filename)
Expand Down

0 comments on commit 3794f10

Please sign in to comment.