Skip to content

Commit

Permalink
fix: update dovecot checker (intel#4419)
Browse files Browse the repository at this point in the history
Update dovecot pattern to catch version with 4 digits

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
  • Loading branch information
ffontaine authored Sep 6, 2024
1 parent 17a6d41 commit c252407
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cve_bin_tool/checkers/dovecot.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DovecotChecker(Checker):
]
FILENAME_PATTERNS = [r"dovecot"]
VERSION_PATTERNS = [
r"Dovecot v([0-9]+\.[0-9]+\.[0-9]+)",
r"DOVECOT_VERSION=([0-9]+\.[0-9]+\.[0-9]+)",
r"Dovecot v([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?)",
r"DOVECOT_VERSION=([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?)",
]
VENDOR_PRODUCT = [("dovecot", "dovecot")]
Binary file not shown.
11 changes: 11 additions & 0 deletions test/test_data/dovecot.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
"version": "2.2.11",
"version_strings": ["Dovecot v2.2.11", "DOVECOT_VERSION=2.2.11"],
},
{
"product": "dovecot",
"version": "2.3.21.1",
"version_strings": ["Dovecot v2.3.21.1", "DOVECOT_VERSION=2.3.21.1"],
},
]
package_test_data = [
{
Expand All @@ -33,4 +38,10 @@
"product": "dovecot",
"version": "2.3.13",
},
{
"url": "http://ftp.fr.debian.org/debian/pool/main/d/dovecot/",
"package_name": "dovecot-core_2.3.21.1%2Bdfsg1-1_arm64.deb",
"product": "dovecot",
"version": "2.3.21.1",
},
]

0 comments on commit c252407

Please sign in to comment.