Skip to content

Commit a614041

Browse files
authored
fix: update sqlite pattern for android (#5440)
Update sqlite pattern to detect more android versions Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent 2e7eb9b commit a614041

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cve_bin_tool/checkers/sqlite.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ class SqliteChecker(Checker):
5858
VERSION_PATTERNS = [
5959
r"Id: SQLite version (\d+\.\d+\.\d+)",
6060
r"(\d{4}-\d{2}-\d{2} \d+:\d+:\d+ [\w]+)[a-z\r\n]*(?:SQLite|SQLITE|DESC)",
61-
r"SQLite format[a-zA-Z0-9_`=:;<>?^@'()&%}*$! \\\"\[\]\t\r\n]*(\d+\.\d+\.\d+)",
61+
r"SQLite format[a-zA-Z0-9_`=:;<>?^@'()&%{|}*$!_#;~, \-\\\"\[\]\t\.\r\n]*(\d+\.\d+\.\d+)",
62+
r"(\d+\.\d+\.\d+)[a-zA-Z0-9!#$%&'()*+,/:;<=>?@^_`{|}~ \-\\\"\[\]\.\r\n]*SQLite format 3\r?\n[?:BINARY|REINDEX]+",
6263
]
6364
FILENAME_PATTERNS = [r"sqlite", r"sqlite3"]
6465

0 commit comments

Comments
 (0)