Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cve_bin_tool/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def get_cves(self, vendor_package_pairs, vers):

for i in range(len(vendor_package_pairs)):
vendor_package_pairs[i] = tuple(vendor_package_pairs[i])[:2] + (
"%" + vers + "%",
"%" + str(vers) + "%",
)

# here we don't need to grab all of the versions
Expand Down Expand Up @@ -195,7 +195,7 @@ def scan_file(self, filename):
if self.verbose:
print(filename, result["is_or_contains"], modulename, version)
if found_cves.keys():
print("Known CVEs in version " + version)
print("Known CVEs in version " + str(version))
print(", ".join(found_cves.keys()))

self.logger.debug("Done scanning file: %r", filename)
Expand Down Expand Up @@ -418,7 +418,7 @@ def main(argv=sys.argv, outfile=sys.stdout):
if (not args.quiet) and scanner.files_with_cve > 0:
affected_string = ", ".join(
map(
lambda module_version: " ".join(module_version),
lambda module_version: " ".join(str(module_version)),
scanner.affected(),
)
)
Expand Down