Skip to content

Commit

Permalink
fix: improve libsndfile signature (#2689)
Browse files Browse the repository at this point in the history
Improve libsndfile to avoid catching the following string in version
1.0.31:

:Default Name    libsndfile-1.0.3%-*.*s

While at it, add an OpenWRT test package

Signed-off-by: Fabrice Fontaine <[email protected]>
  • Loading branch information
ffontaine committed Feb 13, 2023
1 parent 92e9b10 commit 9d2e89a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cve_bin_tool/checkers/libsndfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ class LibsndfileChecker(Checker):
# r"MATLAB 5.0 MAT-file, written by libsndfile-(\d+\.\d+\.\d+),",
]
FILENAME_PATTERNS = [r"libsndfile.so"]
VERSION_PATTERNS = [r"libsndfile-(\d+\.\d+\.\d+)"]
VERSION_PATTERNS = [r"libsndfile-(\d+\.\d+\.\d+[a-z0-9]*)\r?\n"]
VENDOR_PRODUCT = [("libsndfile_project", "libsndfile")]
Binary file not shown.
7 changes: 7 additions & 0 deletions test/test_data/libsndfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,11 @@
"version": "1.0.31",
"other_products": [],
},
{
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/packages/",
"package_name": "libsndfile_2019-04-21-25824cb9-1_x86_64.ipk",
"product": "libsndfile",
"version": "1.0.29pre1",
"other_products": [],
},
]

0 comments on commit 9d2e89a

Please sign in to comment.