Skip to content

Commit

Permalink
fix: update subversion pattern
Browse files Browse the repository at this point in the history
Update subversion pattern to retrieve version in "recent" debian and
openwrt packages

Signed-off-by: Fabrice Fontaine <[email protected]>
  • Loading branch information
ffontaine committed Dec 20, 2024
1 parent d389887 commit 3be7bd0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions cve_bin_tool/checkers/subversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ class SubversionChecker(Checker):
]
VERSION_PATTERNS = [
r"subversion-([0-9]+\.[0-9]+\.[0-9]+)",
r"([0-9]+\.[0-9]+\.[0-9]+) [A-Za-z0-9_>/'%; \-\.\!\(\)\r\n]*subversion",
]
VENDOR_PRODUCT = [("subversion", "subversion"), ("apache", "subversion")]
Binary file not shown.
Binary file not shown.
14 changes: 13 additions & 1 deletion test/test_data/subversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,17 @@
"package_name": "subversion_1.9.3-2ubuntu1_arm64.deb",
"product": "subversion",
"version": "1.9.3",
}
},
{
"url": "http://ftp.fr.debian.org/debian/pool/main/s/subversion/",
"package_name": "libsvn1_1.14.1-3+deb11u1_arm64.deb",
"product": "subversion",
"version": "1.14.1",
},
{
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/packages/",
"package_name": "subversion-libs_1.12.2-2_x86_64.ipk",
"product": "subversion",
"version": "1.12.2",
},
]

0 comments on commit 3be7bd0

Please sign in to comment.