]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Increase the precision of the nData parameter to the dbdataValue() routine
authordrh <>
Wed, 9 Nov 2022 10:17:25 +0000 (10:17 +0000)
committerdrh <>
Wed, 9 Nov 2022 10:17:25 +0000 (10:17 +0000)
inside the sqlite_dbdata virtual table, to avoid the possibility of integer
overflow.

FossilOrigin-Name: 295447b44fc7658891352a9b3f792379b52a76ee5dcfd498b7028f5f87b40e9e

ext/recover/dbdata.c
manifest
manifest.uuid

index 4132b83d71589a93b9aa9ca31e4744cf57514fff..8419e0814841e999e1b3f98c54a9245b48d3a891 100644 (file)
@@ -428,7 +428,7 @@ static void dbdataValue(
   u32 enc,
   int eType, 
   u8 *pData,
-  int nData
+  sqlite3_int64 nData
 ){
   if( eType>=0 && dbdataValueBytes(eType)<=nData ){
     switch( eType ){
index dbaf85c8fe0d9daca528d093d5e8d8bc5b07f590..b7f39970aee30f29369d862222cb51e5507735b5 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Fix\sa\sproblem\swith\sURI\sformatting\sin\scalls\sto\ssqlite3rbu_vacuum(zDb,\sNULL)\scausing\sproblems\son\swin32.\sFirst\sreported\shere\s<https://sqlite.org/forum/forumpost/a7ae915a9d>.
-D 2022-11-08T20:04:05.128
+C Increase\sthe\sprecision\sof\sthe\snData\sparameter\sto\sthe\sdbdataValue()\sroutine\ninside\sthe\ssqlite_dbdata\svirtual\stable,\sto\savoid\sthe\spossibility\sof\sinteger\noverflow.
+D 2022-11-09T10:17:25.458
 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
 F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
@@ -386,7 +386,7 @@ F ext/rbu/rbuvacuum4.test a78898e438a44803eb2bc897ba3323373c9f277418e2d6d76e90f2
 F ext/rbu/sqlite3rbu.c c4ba7901b2d3e0c7845f30840e3ffb35c6f999d6da0d80f121866491f982794c
 F ext/rbu/sqlite3rbu.h 02d981e2d39c151391759e1a400e29c7388730812957ac3db8dad7f6c9f9cfc8
 F ext/rbu/test_rbu.c ee6ede75147bc081fe9bc3931e6b206277418d14d3fbceea6fdc6216d9b47055
-F ext/recover/dbdata.c 1d5353d3af247c4e0656f8f88a80564aa840644c1177212dd11a186dce4ab213
+F ext/recover/dbdata.c ac61a3fcd8b94ef195c7c9241f7eb1ac6401b4634b5b532a8ffe910c5aaef70d
 F ext/recover/recover1.test 02004eb8f9ec2825ba77e24742c18e45162cb21d27e76a3a435b83a759a1131a
 F ext/recover/recover_common.tcl a61306c1eb45c0c3fc45652c35b2d4ec19729e340bdf65a272ce4c229cefd85a
 F ext/recover/recoverclobber.test 3ba6c0c373c5c63d17e82eced64c05c57ccaf26c1abe1ca7141334022a79f32e
@@ -2055,8 +2055,8 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
 F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
 F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P 901918c4867557e51160ef9c495e4e007de26cfe07c237addc00a388662957e8
-R e1174940c9eea4fdd4992c2251cd547f
-U dan
-Z ccc7a06b399803ae9bb727d82784bfa2
+P 77ccc8ea8a901df64feabe08e1210087d060f0bc133242e87a94a71b68b5b5fa
+R 545f66eddeec93de8c190e3a826342d9
+U drh
+Z ccc0668e4034ef7e9d99a59bf656580b
 # Remove this line to create a well-formed Fossil manifest.
index 6cdb031b12cb98069344201e082c34c50255fd36..a60c80038c15fc7d214f8e98f83c2c5800982b0b 100644 (file)
@@ -1 +1 @@
-77ccc8ea8a901df64feabe08e1210087d060f0bc133242e87a94a71b68b5b5fa
\ No newline at end of file
+295447b44fc7658891352a9b3f792379b52a76ee5dcfd498b7028f5f87b40e9e
\ No newline at end of file