8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 17:23:03 +01:00

Restore zero-initialization of just allocated buffers, that was lost with fix for #7873, unfortunately.

This commit is contained in:
Vlad Khorsun 2024-10-14 16:49:34 +03:00
parent 2ba5910261
commit 9b1e09c1a3

View File

@ -897,6 +897,8 @@ BackupManager::BackupManager(thread_db* tdbb, Database* _database, int ini_state
UCHAR* temp_buffers = reinterpret_cast<UCHAR*>
(temp_buffers_space.getAlignedBuffer(database->dbb_page_size * 3, database->getIOBlockSize()));
memset(temp_buffers, 0, database->dbb_page_size * 3);
backup_state = ini_state;
empty_buffer = reinterpret_cast<ULONG*>(temp_buffers);