aboutsummaryrefslogtreecommitdiff
path: root/src/btree.c
diff options
context:
space:
mode:
authordrh <>2021-04-22 20:01:02 +0000
committerdrh <>2021-04-22 20:01:02 +0000
commiteca3c67b1c3297ab8e02a182f2c65009910e957f (patch)
tree1fe5ba028141e77bc7278adba55f7119f1e203a1 /src/btree.c
parent214b50314a878a0b6856d83cfde99c4ea3a5fcd5 (diff)
downloadsqlite-eca3c67b1c3297ab8e02a182f2c65009910e957f.tar.gz
sqlite-eca3c67b1c3297ab8e02a182f2c65009910e957f.zip
Change a memcpy() into a memmove() to prevent a warning about overlapping
regions passed to memcpy() in case of some obscure and unlikely database corruption. FossilOrigin-Name: bab132cbd18a529389a0315e60f30ccf1b565823116e0ec9b4f7684db1914c80
Diffstat (limited to 'src/btree.c')
-rw-r--r--src/btree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree.c b/src/btree.c
index 7ff0a46e1..d3c76cde9 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -7028,7 +7028,7 @@ static int rebuildPage(
put2byte(pCellptr, (pData - aData));
pCellptr += 2;
if( pData < pCellptr ) return SQLITE_CORRUPT_BKPT;
- memcpy(pData, pCell, sz);
+ memmove(pData, pCell, sz);
assert( sz==pPg->xCellSize(pPg, pCell) || CORRUPT_DB );
i++;
if( i>=iEnd ) break;