1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-05 04:30:38 +03:00

Earlier detection of corruption in sqlite3VdbeRecordCompare() in order to

avoid a potential buffer overread.

FossilOrigin-Name: 28ddecff044dbc2dff50a7d8406ab67dfe06587f
This commit is contained in:
drh
2014-03-26 14:51:07 +00:00
parent e2ac506704
commit 182ea4e324
4 changed files with 10 additions and 13 deletions

View File

@@ -3434,6 +3434,7 @@ int sqlite3VdbeRecordCompare(
}else{
idx1 = getVarint32(aKey1, szHdr1);
d1 = szHdr1;
if( d1>(unsigned)nKey1 ) return 1; /* Corruption */
i = 0;
}