mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 00:43:02 +01:00
Backported fix for CORE-3148: possible segfault in SQZ_apply_differences
This commit is contained in:
parent
4804e3443e
commit
19e53d36a4
@ -67,6 +67,10 @@ USHORT SQZ_apply_differences(Record* record, const SCHAR* differences,
|
||||
{
|
||||
BUGCHECK(177); /* msg 177 applied differences will not fit in record */
|
||||
}
|
||||
if (differences + l > end)
|
||||
{
|
||||
BUGCHECK(176); // msg 176 bad difference record
|
||||
}
|
||||
memcpy(p, differences, l);
|
||||
p += l;
|
||||
differences += l;
|
||||
|
Loading…
Reference in New Issue
Block a user