aboutsummaryrefslogtreecommitdiff
path: root/src/btree.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2019-03-13 17:31:20 +0000
committerdan <dan@noemail.net>2019-03-13 17:31:20 +0000
commitdb7d895e9d145be140b8290f930a3be521861a0a (patch)
tree4541e7be3d8fdf80d87a0f1da4c3099e805984e5 /src/btree.c
parentb6f2deac3c817bc6a13cce1e7f5316ad1e8fbec0 (diff)
parentb65e801e5f2123803ae9604c5cd53df7060b9995 (diff)
downloadsqlite-db7d895e9d145be140b8290f930a3be521861a0a.tar.gz
sqlite-db7d895e9d145be140b8290f930a3be521861a0a.zip
Merge latest trunk changes into this branch.
FossilOrigin-Name: 0b904517bd6c4c59082381577246d3d2351b4265fc9151438ee4c33cf16f2eb1
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 d80f135f2..2b43d1f9d 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -1573,7 +1573,7 @@ static u8 *pageFindSlot(MemPage *pPg, int nByte, int *pRc){
}
iAddr = pc;
pc = get2byte(&aData[pc]);
- if( pc<iAddr+size ){
+ if( pc<=iAddr+size ){
if( pc ){
/* The next slot in the chain is not past the end of the current slot */
*pRc = SQLITE_CORRUPT_PAGE(pPg);