diff --git a/0006-CVE-2022-46908.patch b/0006-CVE-2022-46908.patch new file mode 100644 index 0000000000000000000000000000000000000000..db5c22219c7d1389cb1062f650ade5930fc779cd --- /dev/null +++ b/0006-CVE-2022-46908.patch @@ -0,0 +1,53 @@ +From 040177c01a76ccb631bbe19a445f716f0d7b9458 Mon Sep 17 00:00:00 2001 +From: zwtmichael +Date: Thu, 15 Dec 2022 09:49:15 +0800 +Subject: [PATCH] Fix safe mode authorizer callback to reject disallowed UDFs + +Signed-off-by: zwtmichael +--- + src/shell.c.in | 4 ++-- + test/shell2.test | 11 +++++++++++ + 2 files changed, 13 insertions(+), 2 deletions(-) + +diff --git a/src/shell.c.in b/src/shell.c.in +index 543141c..2c1e013 100644 +--- a/src/shell.c.in ++++ b/src/shell.c.in +@@ -1829,7 +1829,7 @@ static int safeModeAuth( + "zipfile", + "zipfile_cds", + }; +- UNUSED_PARAMETER(zA2); ++ UNUSED_PARAMETER(zA1); + UNUSED_PARAMETER(zA3); + UNUSED_PARAMETER(zA4); + switch( op ){ +@@ -1840,7 +1840,7 @@ static int safeModeAuth( + case SQLITE_FUNCTION: { + int i; + for(i=0; i - 3.37.2-4 +- fix the CVE-2022-46908 + * Wed Sep 14 2022 zhuwentao - 3.37.2-3 - fix build problem