From 38119058aa90f542cf9cd6429380096a8a3f62f9 Mon Sep 17 00:00:00 2001 From: drh <> Date: Sun, 17 Sep 2023 16:36:22 +0000 Subject: Remove a NEVER() in btree.c that could actually be reached, with the approriate database corruption. FossilOrigin-Name: d1fd00e0875f881cacdc581a75215ec1872a81969ac07b8ebe3aaa707a9a3640 --- src/btree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/btree.c') diff --git a/src/btree.c b/src/btree.c index c23f86e1d..fa5c47d13 100644 --- a/src/btree.c +++ b/src/btree.c @@ -7495,7 +7495,7 @@ static int rebuildPage( assert( i(u32)usableSize) ){ j = 0; } + if( j>(u32)usableSize ){ j = 0; } memcpy(&pTmp[j], &aData[j], usableSize - j); for(k=0; ALWAYS(kixNx[k]<=i; k++){} -- cgit v1.2.3