Skip to content

Commit 9b1e09c

Browse files
committed
Restore zero-initialization of just allocated buffers, that was lost with fix for #7873, unfortunately.
1 parent 2ba5910 commit 9b1e09c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/jrd/nbak.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,8 @@ BackupManager::BackupManager(thread_db* tdbb, Database* _database, int ini_state
897897
UCHAR* temp_buffers = reinterpret_cast<UCHAR*>
898898
(temp_buffers_space.getAlignedBuffer(database->dbb_page_size * 3, database->getIOBlockSize()));
899899

900+
memset(temp_buffers, 0, database->dbb_page_size * 3);
901+
900902
backup_state = ini_state;
901903

902904
empty_buffer = reinterpret_cast<ULONG*>(temp_buffers);

0 commit comments

Comments
 (0)