1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Guard against oversized cells in the newly enhanced pageFreeArray().

FossilOrigin-Name: 2dcdbb50356edbd3a79e53fa0bee4e700c2bdea78e27173b62ddabe44b066726
This commit is contained in:
drh
2023-04-07 18:27:32 +00:00
parent 3da5e2a9f3
commit 65aae44b87
3 changed files with 8 additions and 7 deletions

View File

@@ -7619,6 +7619,7 @@ static int pageFreeArray(
}
aOfst[nFree] = iOfst;
aAfter[nFree] = iAfter;
if( &aData[iAfter]>pEnd ) return 0;
nFree++;
}
nRet++;