8
0
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:
alexpeshkoff 2010-10-19 13:28:18 +00:00
parent 4804e3443e
commit 19e53d36a4

View File

@ -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;