1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Check-in (6450) introduced the possibility of calling memset() with a

negative 3rd argument.  This fixes that bug.  Ticket #3777. (CVS 6452)

FossilOrigin-Name: 8ca612c42e0de3ef5b2f92d80a56db1bef34b1c6
This commit is contained in:
drh
2009-04-06 11:11:42 +00:00
parent 02368c983f
commit 3c6d9a48e0
3 changed files with 9 additions and 8 deletions

View 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);