8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 09:20:39 +01:00

This should fix bug #7996 : gbak terminates/crashes when a read error occurs during restore

This commit is contained in:
Vlad Khorsun 2024-02-08 12:43:57 +02:00
parent 082030d7da
commit 78eab2dbda

View File

@ -12304,7 +12304,7 @@ bool RestoreRelationTask::fileReader(Item& item)
const RCRD_LENGTH length = m_metadata.m_inMsgLen; // full record length
IOBuffer* ioBuf = NULL;
IOBuffer*& ioBuf = item.m_buffer = NULL;
FB_SSIZE_T space = 0; // space left in current buffer
UCHAR* buf = NULL; // pointer at the current buffer