1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-02 05:54:29 +03:00

Avoid a buffer overread when comparing against a corrupt record that spans at least one overflow page.

FossilOrigin-Name: 62a5b3633a086694ef0e579a0a82322cb1ae3d60
This commit is contained in:
dan
2015-05-26 20:31:20 +00:00
parent cc7aa1f6f3
commit b95e1193d5
4 changed files with 15 additions and 11 deletions

View File

@@ -3651,7 +3651,7 @@ int sqlite3VdbeRecordCompareWithSkip(
if( pRhs->flags & MEM_Int ){
serial_type = aKey1[idx1];
testcase( serial_type==12 );
if( serial_type>=12 ){
if( serial_type>=10 ){
rc = +1;
}else if( serial_type==0 ){
rc = -1;