mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
Remove an assert() from vdbeaux.c that might not be true if the database
file is corrupt. (CVS 6895) FossilOrigin-Name: a42dc51e3bd258d5a357e557251fb2642708ceac
This commit is contained in:
@@ -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.474 2009/07/14 18:35:46 drh Exp $
|
||||
** $Id: vdbeaux.c,v 1.475 2009/07/15 16:30:50 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include "vdbeInt.h"
|
||||
@@ -2420,11 +2420,10 @@ UnpackedRecord *sqlite3VdbeRecordUnpack(
|
||||
idx = getVarint32(aKey, szHdr);
|
||||
d = szHdr;
|
||||
u = 0;
|
||||
while( idx<szHdr && u<p->nField ){
|
||||
while( idx<szHdr && u<p->nField && d<=nKey ){
|
||||
u32 serial_type;
|
||||
|
||||
idx += getVarint32(&aKey[idx], serial_type);
|
||||
assert( d+sqlite3VdbeSerialTypeLen(serial_type) <= nKey );
|
||||
pMem->enc = pKeyInfo->enc;
|
||||
pMem->db = pKeyInfo->db;
|
||||
pMem->flags = 0;
|
||||
|
||||
Reference in New Issue
Block a user