mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Add tests and a fix for program "changesetfuzz".
FossilOrigin-Name: 09b90db56c2d5e3aceae59c6bf1eb07f9db9ef38da29d2162046b88d39e47b86
This commit is contained in:
@ -536,9 +536,10 @@ static int fuzzParseRecord(
|
||||
int i;
|
||||
u8 *p = *ppRec;
|
||||
|
||||
for(i=0; rc==SQLITE_OK && i<pGrp->nCol && p<pEnd; i++){
|
||||
for(i=0; rc==SQLITE_OK && i<pGrp->nCol; i++){
|
||||
if( bPkOnly==0 || pGrp->aPK[i] ){
|
||||
int sz;
|
||||
if( p>=pEnd ) break;
|
||||
if( (pParse->nVal & (pParse->nVal-1))==0 ){
|
||||
int nNew = pParse->nVal ? pParse->nVal*2 : 4;
|
||||
u8 **apNew = (u8**)sqlite3_realloc(pParse->apVal, nNew*sizeof(u8*));
|
||||
|
Reference in New Issue
Block a user