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

Make sure all bytes of the WAL file are initialized even if the checksums are

not being computed until commit due to WAL overwrite.

FossilOrigin-Name: 1f44a9bdc1577aed088d9b91882527228015dcd3
This commit is contained in:
drh
2016-01-12 02:28:19 +00:00
parent 9ca33fa4c2
commit 869aaf0941
3 changed files with 9 additions and 7 deletions

View File

@@ -708,6 +708,8 @@ static void walEncodeFrame(
sqlite3Put4byte(&aFrame[16], aCksum[0]);
sqlite3Put4byte(&aFrame[20], aCksum[1]);
}else{
memset(&aFrame[8], 0, 16);
}
}