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