1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix a problem in rbu vacuum on tables with a large sqlite_master table.

FossilOrigin-Name: 23eac52e987996afe8db847921aef434cebd25b5
This commit is contained in:
dan
2016-04-21 15:26:26 +00:00
parent 94d49697b5
commit 2e8bfb67d4
4 changed files with 25 additions and 10 deletions

View File

@ -3952,9 +3952,9 @@ static int rbuVfsRead(
rbuPutU32(&aBuf[24], pRbu->pRbuFd->iCookie+1); /* Change counter */
if( iAmt>100 ){
assert( iAmt>=101 );
memset(&aBuf[101], 0, iAmt-101);
memset(&aBuf[100], 0, iAmt-100);
rbuPutU16(&aBuf[105], iAmt & 0xFFFF);
aBuf[100] = 0x0D;
}
}
}