Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions cve_bin_tool/checkers/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class SqliteChecker(Checker):
VERSION_PATTERNS = [
r"Id: SQLite version (\d+\.\d+\.\d+)",
r"(\d{4}-\d{2}-\d{2} \d+:\d+:\d+ [\w]+)[a-z\r\n]*(?:SQLite|SQLITE|DESC)",
# r"(3\.\d+\.\d+)",
]
FILENAME_PATTERNS = [r"sqlite", r"sqlite3"]

Expand Down
8 changes: 5 additions & 3 deletions cve_bin_tool/checkers/xml2.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ class Xml2Checker(Checker):
r"xmlNewElementContent : name != NULL !",
r"xmlRelaxNG: include %s has a define %s but not the included grammar",
]
FILENAME_PATTERNS = [r"libxml2.so."]
FILENAME_PATTERNS = [r"libxml2\.so"]
VERSION_PATTERNS: list[str] = [
r"libxml2-([0-9]+\.[0-9]+\.[0-9]+)",
r"libxml2.so.([0-9]+\.[0-9]+\.[0-9]+)",
r"libxml2(?:-|\.so\.)([0-9]+\.[0-9]+\.[0-9]+)",
# r"LIBXML2_([0-9]+\.[0-9]+\.[0-9]+)", # Debian ?
r"([0-9]+\.[0-9]+\.[0-9]+)[a-z0-9>\-\r\n]*XML_ENTITY_REF_NODE"
]
VENDOR_PRODUCT = [("xmlsoft", "libxml2")]

Binary file added test/condensed-downloads/libxml2.so
Binary file not shown.
5 changes: 5 additions & 0 deletions test/test_data/xml2.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
"product": "libxml2",
"version": "2.9.0",
"version_strings": ["/libxml2-2.9.0/", "xmlNewElementContent : name != NULL !"],
},
{
"product": "libxml2",
"version": "2.9.9",
"version_strings": ["20909-GITv2.9.9-rc2-2-g7c4949afa\n-->\nXML_ENTITY_REF_NODE"],
}
]
package_test_data = [
Expand Down