]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Check-in (6450) introduced the possibility of calling memset() with a
authordrh <drh@noemail.net>
Mon, 6 Apr 2009 11:11:42 +0000 (11:11 +0000)
committerdrh <drh@noemail.net>
Mon, 6 Apr 2009 11:11:42 +0000 (11:11 +0000)
negative 3rd argument.  This fixes that bug.  Ticket #3777. (CVS 6452)

FossilOrigin-Name: 8ca612c42e0de3ef5b2f92d80a56db1bef34b1c6

manifest
manifest.uuid
src/vdbeaux.c

index ab4ae30f165d155514e0b523e09e7a8cb2bb70b6..3508685a8b41bdb004d0a7f79b5f7f6472fa17a0 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Fix\sa\ssegfault\sin\sLemon\sthat\soccurs\sif\sthe\sinput\sgrammar\sdoes\snot\sdefine\na\stype\sfor\stokens.\s\sThis\sdoes\snot\seffect\sSQLite\ssince\sthe\sSQLite\sgrammar\ndoes\sdefine\sa\stype\sfor\stokens.\s(CVS\s6451)
-D 2009-04-05T15:18:03
+C Check-in\s(6450)\sintroduced\sthe\spossibility\sof\scalling\smemset()\swith\sa\nnegative\s3rd\sargument.\s\sThis\sfixes\sthat\sbug.\s\sTicket\s#3777.\s(CVS\s6452)
+D 2009-04-06T11:11:43
 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
 F Makefile.in 583e87706abc3026960ed759aff6371faf84c211
 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -204,7 +204,7 @@ F src/vdbe.c bddddefc5c7ec1c9cd3e4f9220eb813b43668605
 F src/vdbe.h d70a68bee196ab228914a3902c79dbd24342a0f2
 F src/vdbeInt.h 53a2f4696871712646c77351904576cca6ad9752
 F src/vdbeapi.c 950986b0f765b5b91aab1acb2b405d9450b749d1
-F src/vdbeaux.c d335ae5da63cd3b3a0f122e63d0e79e34a4e4fb1
+F src/vdbeaux.c 570aaa5e15ae141115194d22443c73c8beb5032b
 F src/vdbeblob.c e67757450ae8581a8b354d9d7e467e41502dfe38
 F src/vdbemem.c 9798905787baae83d0b53b62030e32ecf7a0586f
 F src/vtab.c f1aba5a6dc1f83b97a39fbbc58ff8cbc76311347
@@ -715,7 +715,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
 F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
 F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
-P 208382e032134d9c78fe1cfcb98ce9defb4e3e26
-R d910c4e9dfa053622705d5efbf2ba5ee
+P 4424aee958b2e764a61141b5c66c063e36ed5aae
+R 43e6aecc78e9f6e0e77380914acd3bdb
 U drh
-Z 6862243e084bcfb065a1296a49f3c98a
+Z 14516626e5d5c461983ced4b758a4b3b
index 036ed8598843ccadb52ce98ce4bf4067607bc08d..d6077a2773660ecdae3e0768f35b0260ce46f02d 100644 (file)
@@ -1 +1 @@
-4424aee958b2e764a61141b5c66c063e36ed5aae
\ No newline at end of file
+8ca612c42e0de3ef5b2f92d80a56db1bef34b1c6
\ No newline at end of file
index 3f319da31815d8d3d2787ee51747fedb5ad96a8a..d4ce83254adfc839866ef3d1cb75b2a5c249c00a 100644 (file)
@@ -14,7 +14,7 @@
 ** to version 2.8.7, all this code was combined into the vdbe.c source file.
 ** But that file was getting too big so this subroutines were split out.
 **
-** $Id: vdbeaux.c,v 1.447 2009/04/05 12:22:09 drh Exp $
+** $Id: vdbeaux.c,v 1.448 2009/04/06 11:11:43 drh Exp $
 */
 #include "sqliteInt.h"
 #include "vdbeInt.h"
@@ -1099,6 +1099,7 @@ void sqlite3VdbeMakeReady(
     }
     zCsr += (zCsr - (u8*)0)&7;
     assert( EIGHT_BYTE_ALIGNMENT(zCsr) );
+    if( zEnd<zCsr ) zEnd = zCsr;
 
     do {
       memset(zCsr, 0, zEnd-zCsr);