Skip to content

Commit af0ee6e

Browse files
authored
fix: update sqlite pattern for android (#5435)
Partially fix #5405 Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
1 parent 7cf7c3f commit af0ee6e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cve_bin_tool/checkers/sqlite.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ 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+)",
6162
]
6263
FILENAME_PATTERNS = [r"sqlite", r"sqlite3"]
6364

test/test_data/sqlite.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@
4141
"2020-04-06 18:16:31 1e4b6a93987cdfbf829e2ff35ef417c290625f2894ad11949e301af518f1fb44\nSQLite",
4242
],
4343
},
44+
{
45+
"product": "sqlite",
46+
"version": "3.32.2",
47+
"version_strings": [
48+
"SQLite format 3\n%v}\nove_diacritics=0`abcdefghijklmno\nove_diacritics=1\n@x}\n* @\n0123456789:;<=>?d\nPQRSTUVWXYZ[\\]^_D\n7LY\n$KA\n@ABCDEFGHIJKLMNO0\n0123456789ABCDEF\nove_diacritics=2\nAaTR'\nfffff\nZd;)'&(\nv!\t\np\"\t\n )\t\nx$\t\nO%\t\n]&\t\nn*\t\nf'\t\nG(3.32.2"
49+
],
50+
},
4451
]
4552
package_test_data = [
4653
{

0 commit comments

Comments
 (0)