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

Fix an assert() in the OP_Delete opcode that could fail with a corrupt database.

FossilOrigin-Name: 915388ab39ba3ca8681cd2613b91314aa965967f23a5bface90f54a3d6423300
This commit is contained in:
dan
2019-05-16 20:13:32 +00:00
parent 36c9301816
commit 0971ef45ab
4 changed files with 61 additions and 9 deletions

View File

@@ -4784,7 +4784,7 @@ case OP_Delete: {
** OP_Delete will have also set the pC->movetoTarget field to the rowid of
** the row that is being deleted */
i64 iKey = sqlite3BtreeIntegerKey(pC->uc.pCursor);
assert( pC->movetoTarget==iKey );
assert( CORRUPT_DB || pC->movetoTarget==iKey );
}
#endif