diff options
author | drh <drh@noemail.net> | 2008-04-14 01:00:57 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-04-14 01:00:57 +0000 |
commit | c5d0bd907b97017c255164bb47e97b224c131f8c (patch) | |
tree | d7ede24331cf247f0f45326f213ed62e93def0b0 /src/bitvec.c | |
parent | ede262769506c3dbdf67f8c72576d9ee238accc2 (diff) | |
download | sqlite-c5d0bd907b97017c255164bb47e97b224c131f8c.tar.gz sqlite-c5d0bd907b97017c255164bb47e97b224c131f8c.zip |
Get the SQLITE_SECURE_DELETE compile-time option working again.
Ticket #3050. (CVS 4999)
FossilOrigin-Name: 40ba51fd4c621e29e7ff85495b1212c92f06ab31
Diffstat (limited to 'src/bitvec.c')
-rw-r--r-- | src/bitvec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bitvec.c b/src/bitvec.c index be8f4d6d1..c8b8e200b 100644 --- a/src/bitvec.c +++ b/src/bitvec.c @@ -32,7 +32,7 @@ ** start of a transaction, and is thus usually less than a few thousand, ** but can be as large as 2 billion for a really big database. ** -** @(#) $Id: bitvec.c,v 1.3 2008/03/21 16:45:47 drh Exp $ +** @(#) $Id: bitvec.c,v 1.4 2008/04/14 01:00:58 drh Exp $ */ #include "sqliteInt.h" @@ -130,6 +130,7 @@ int sqlite3BitvecSet(Bitvec *p, u32 i){ u32 h; assert( p!=0 ); assert( i>0 ); + assert( i<=p->iSize ); if( p->iSize<=BITVEC_NBIT ){ i--; p->u.aBitmap[i/8] |= 1 << (i&7); |