From 9b1e09c1a3db5146550d417ed3e28b5b87760a5b Mon Sep 17 00:00:00 2001 From: Vlad Khorsun Date: Mon, 14 Oct 2024 16:49:34 +0300 Subject: [PATCH] Restore zero-initialization of just allocated buffers, that was lost with fix for #7873, unfortunately. --- src/jrd/nbak.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jrd/nbak.cpp b/src/jrd/nbak.cpp index 6b7122aba6..2820163767 100644 --- a/src/jrd/nbak.cpp +++ b/src/jrd/nbak.cpp @@ -897,6 +897,8 @@ BackupManager::BackupManager(thread_db* tdbb, Database* _database, int ini_state UCHAR* temp_buffers = reinterpret_cast (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(temp_buffers);