mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-04 17:47:20 +02:00
Fix SerializeSnapshot not to overrun the allocated space.
Rushabh Lathia
This commit is contained in:
parent
369c0b0908
commit
763b8f5d90
@ -1515,7 +1515,7 @@ SerializeSnapshot(Snapshot snapshot, char *start_address)
|
||||
* snapshot taken during recovery; all the top-level XIDs are in subxip as
|
||||
* well in that case, so we mustn't lose them.
|
||||
*/
|
||||
if (snapshot->subxcnt > 0)
|
||||
if (serialized_snapshot->subxcnt > 0)
|
||||
{
|
||||
Size subxipoff = sizeof(SerializedSnapshotData) +
|
||||
snapshot->xcnt * sizeof(TransactionId);
|
||||
|
Loading…
Reference in New Issue
Block a user