diff options
author | drh <> | 2025-06-03 10:28:47 +0000 |
---|---|---|
committer | drh <> | 2025-06-03 10:28:47 +0000 |
commit | df724c893add695f0786bca0f203c33174e093ac (patch) | |
tree | 821bc349315ffa9ca23675136c49ac804be0d145 /tool/sqlite3_rsync.c | |
parent | 140748f949aa52e1cc09eaa9d8e4fb685c426154 (diff) | |
download | sqlite-df724c893add695f0786bca0f203c33174e093ac.tar.gz sqlite-df724c893add695f0786bca0f203c33174e093ac.zip |
Fix an off-by-one error in sqlite3_rsync, reported in
[forum:/forumpost/b6d78f60fc|forum post b6d78f60fc].
FossilOrigin-Name: 27d9e8e79b921c4a86916556f3bf56b94684a7e3d40166c0fdaaf750d4011de0
Diffstat (limited to 'tool/sqlite3_rsync.c')
-rw-r--r-- | tool/sqlite3_rsync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/sqlite3_rsync.c b/tool/sqlite3_rsync.c index 46ff2e50e..84ebf15c5 100644 --- a/tool/sqlite3_rsync.c +++ b/tool/sqlite3_rsync.c @@ -1538,7 +1538,7 @@ static void originSide(SQLiteRsync *p){ sqlite3_finalize(pInsHash); pCkHash = 0; pInsHash = 0; - if( mxHash<p->nPage ){ + if( mxHash<=p->nPage ){ runSql(p, "WITH RECURSIVE c(n) AS" " (VALUES(%d) UNION ALL SELECT n+1 FROM c WHERE n<%d)" " INSERT INTO badHash SELECT n, 1 FROM c", |