Skip to content

Commit 161560d

Browse files
authored
fix: update xml2 pattern for android (#5439)
Update xml2 pattern to catch more version inside different android libraries Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent a614041 commit 161560d

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
@@ -24,6 +24,6 @@ class Xml2Checker(Checker):
2424
FILENAME_PATTERNS = [r"libxml2.so."]
2525
VERSION_PATTERNS: list[str] = [
2626
r"libxml2(?:-|\.so\.)([0-9]+\.[0-9]+\.[0-9]+)",
27-
r"([0-9]+\.[0-9]+\.[0-9]+)[a-z0-9>\-\r\n]*XML_ENTITY_REF_NODE",
27+
r"GITv([0-9]+\.[0-9]+\.[0-9]+)[a-zA-Z0-9:> \-\r\n]*(?:xml|XML)",
2828
]
2929
VENDOR_PRODUCT = [("xmlsoft", "libxml2")]

0 commit comments

Comments
 (0)