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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user