8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 12:03:02 +01:00

Fixed CORE-1958: Bugcheck 179 (decompression overran buffer) when attempting to update the same record multiple times.

This commit is contained in:
dimitr 2008-06-24 18:24:46 +00:00
parent f41a7c9a9d
commit fe2e2ed3a3

View File

@ -2540,7 +2540,6 @@ Record* VIO_record(thread_db* tdbb, record_param* rpb, const Format* format,
pool = dbb->dbb_permanent;
}
record = rpb->rpb_record = FB_NEW_RPT(*pool, format->fmt_length) Record(*pool);
record->rec_length = format->fmt_length;
}
else if (record->rec_length < format->fmt_length) {
Record* const old = record;
@ -2552,13 +2551,13 @@ Record* VIO_record(thread_db* tdbb, record_param* rpb, const Format* format,
else
record = realloc_record(rpb->rpb_record, format->fmt_length);
record->rec_length = format->fmt_length;
if (rpb->rpb_prior == old) {
rpb->rpb_prior = record;
}
}
record->rec_format = format;
record->rec_length = format->fmt_length;
return record;
}