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

Shift the Mem.pScopyFrom pointer in the correct direction in OP_Move.

Fix for a defective check-in [a2135ad13049] and ticket [d6352363751].
Debugging code only - does not affect normal operation.

FossilOrigin-Name: add4e043b35f9c454dea7b888eef1c1e14d791f1
This commit is contained in:
drh
2015-04-28 12:44:55 +00:00
parent 42c0a2b2f3
commit 5fb71254e4
3 changed files with 8 additions and 8 deletions

View File

@@ -1206,7 +1206,7 @@ case OP_Move: {
sqlite3VdbeMemMove(pOut, pIn1);
#ifdef SQLITE_DEBUG
if( pOut->pScopyFrom>=&aMem[p1] && pOut->pScopyFrom<&aMem[p1+pOp->p3] ){
pOut->pScopyFrom += p1 - pOp->p2;
pOut->pScopyFrom += pOp->p2 - p1;
}
#endif
REGISTER_TRACE(p2++, pOut);