1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Fix to payload size overflow detection in the cellSizePtr() change of

the previous check-in.

FossilOrigin-Name: 7609744014c6a84a8379794a0351a2e9626ec86b
This commit is contained in:
drh
2014-09-22 20:38:10 +00:00
parent dc41d60aaa
commit a4bb5b0726
3 changed files with 8 additions and 8 deletions

View File

@@ -1076,7 +1076,7 @@ static u16 cellSizePtr(MemPage *pPage, u8 *pCell){
nSize &= 0x7f;
do{
nSize = (nSize<<7) | (*++pIter & 0x7f);
}while( *(pIter)>=0x80 && pIter<&pCell[6] );
}while( *(pIter)>=0x80 && pIter<pEnd );
}
pIter++;
}else{