diff options
author | drh <> | 2024-05-02 11:52:31 +0000 |
---|---|---|
committer | drh <> | 2024-05-02 11:52:31 +0000 |
commit | 78bc1339ac9abe90927fdfcd71bf017595b80554 (patch) | |
tree | d30708adc74df31ef9e7d59bd2f851de42827099 /src/pragma.c | |
parent | 2ae4531c89bbf9a3f01827e8019eddac0705765b (diff) | |
download | sqlite-78bc1339ac9abe90927fdfcd71bf017595b80554.tar.gz sqlite-78bc1339ac9abe90927fdfcd71bf017595b80554.zip |
Do not accept a string that looks like a number used as an argument to
PRAGMA integrity_check as a number. Treat it as a table name that just
happens to look like a number.
FossilOrigin-Name: b04e7a23478f1012e501a810f3e09cca81a66e802f5f72cae80c81120174e2cb
Diffstat (limited to 'src/pragma.c')
-rw-r--r-- | src/pragma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pragma.c b/src/pragma.c index 8af18cbf2..80864da79 100644 --- a/src/pragma.c +++ b/src/pragma.c @@ -1703,7 +1703,7 @@ void sqlite3Pragma( /* Set the maximum error count */ mxErr = SQLITE_INTEGRITY_CHECK_ERROR_MAX; if( zRight ){ - if( sqlite3GetInt32(zRight, &mxErr) ){ + if( sqlite3GetInt32(pValue->z, &mxErr) ){ if( mxErr<=0 ){ mxErr = SQLITE_INTEGRITY_CHECK_ERROR_MAX; } |