SQLite
Diff
Not logged in

Differences From Artifact [e45e3f9daf]:

To Artifact [714df4e1c8]:


  3428   3428       szHdr1 = aKey1[0];
  3429   3429       d1 = szHdr1 + sqlite3VdbeSerialTypeLen(s1);
  3430   3430       i = 1;
  3431   3431       pRhs++;
  3432   3432     }else{
  3433   3433       idx1 = getVarint32(aKey1, szHdr1);
  3434   3434       d1 = szHdr1;
         3435  +    if( d1>(unsigned)nKey1 ) return 1;  /* Corruption */
  3435   3436       i = 0;
  3436   3437     }
  3437   3438   
  3438   3439     VVA_ONLY( mem1.zMalloc = 0; ) /* Only needed by assert() statements */
  3439   3440     assert( pPKey2->pKeyInfo->nField+pPKey2->pKeyInfo->nXField>=pPKey2->nField 
  3440   3441          || CORRUPT_DB );
  3441   3442     assert( pPKey2->pKeyInfo->aSortOrder!=0 );