Skip to content

Commit

Permalink
fix: improve hostapd checker (#4368)
Browse files Browse the repository at this point in the history
Update hostapd pattern to avoid raising a wrong version of 1.100 with
some proprietary binary which defines the following strings:

192.168.1.100
hostapd_ctrl_interface

Signed-off-by: Fabrice Fontaine <[email protected]>
  • Loading branch information
ffontaine authored Aug 20, 2024
1 parent 978a5bd commit f51f40f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cve_bin_tool/checkers/hostapd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ class HostapdChecker(Checker):
FILENAME_PATTERNS = [r"hostapd"]
VERSION_PATTERNS = [
r"\nhostapd[_a-z]* v([0-9]+\.[0-9]+)",
r"([0-9]+\.[0-9]+)[a-z-]*\r?\nhostapd",
r"([0-9]+\.[0-9]+)[a-z-]*\r?\nhostapd[_a-z]* v",
]
VENDOR_PRODUCT = [("w1.fi", "hostapd")]
2 changes: 1 addition & 1 deletion test/test_data/hostapd.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"product": "hostapd",
"version": "2.10",
"version_strings": ["2.10-devel\nhostapd"],
"version_strings": ["2.10-devel\nhostapd v"],
},
]
package_test_data = [
Expand Down

0 comments on commit f51f40f

Please sign in to comment.