Skip to content

Commit

Permalink
fix: improve gstreamer signature
Browse files Browse the repository at this point in the history
Improve gstreamer signature to avoid returning catching strings such as
libgstreamer-0.10.so.0 in version 0.10.36

Moreover, drop gstreamermm test package which is not gstreamer:
https://gitlab.gnome.org/GNOME/gstreamermm

Signed-off-by: Fabrice Fontaine <[email protected]>
  • Loading branch information
ffontaine committed Feb 10, 2023
1 parent ffb790c commit 3b17871
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
3 changes: 1 addition & 2 deletions cve_bin_tool/checkers/gstreamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class GstreamerChecker(Checker):
FILENAME_PATTERNS = [r"gstreamer"]
VERSION_PATTERNS = [
r"((\d+\.)+\d+)[a-zA-Z \r\n]*GStreamer ",
r"gstreamer[a-zA-Z \r\n]*((\d+\.)+\d+)",
r"libgstreamer-((\d+\.)+\d+)",
r"gstreamer[a-zA-Z \r\n]+((\d+\.)+\d+)",
]
VENDOR_PRODUCT = [("gstreamer", "gstreamer"), ("gstreamer_project", "gstreamer")]
Binary file not shown.
14 changes: 2 additions & 12 deletions test/test_data/gstreamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
mapping_test_data = [
{
"product": "gstreamer",
"version": "1.10.0",
"version_strings": [
"http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer",
"libgstreamer-1.10.0",
],
"version": "0.10.36",
"version_strings": ["gstreamer\nLGPL\n0.10.36"],
},
{
"product": "gstreamer",
Expand All @@ -17,13 +14,6 @@
},
]
package_test_data = [
{
"url": "http://archive.ubuntu.com/ubuntu/pool/universe/g/gstreamermm-1.0/",
"package_name": "libgstreamermm-1.0-0v5_1.4.3+dfsg-5_amd64.deb",
"product": "gstreamer",
"version": "1.0",
"other_products": [],
},
{
"url": "http://mirror.centos.org/centos/7/os/x86_64/Packages/",
"package_name": "gstreamer-0.10.36-7.el7.i686.rpm",
Expand Down

0 comments on commit 3b17871

Please sign in to comment.