pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix failure to consider failure cases in GetComboCommandId().
6+ messages / 1 participants
[nested] [flat]

* pgsql: Fix failure to consider failure cases in GetComboCommandId().
@ 2015-11-26 18:23 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-11-26 18:23 UTC (permalink / raw)
  To: pgsql-committers

Fix failure to consider failure cases in GetComboCommandId().

Failure to initially palloc the comboCids array, or to realloc it bigger
when needed, left combocid's data structures in an inconsistent state that
would cause trouble if the top transaction continues to execute.  Noted
while examining a user complaint about the amount of memory used for this.
(There's not much we can do about that, but it does point up that repalloc
failure has a non-negligible chance of occurring here.)

In HEAD/9.5, also avoid possible invocation of memcpy() with a null pointer
in SerializeComboCIDState; cf commit 13bba0227.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/0da3a9bef7ad36dc640aebf2d0482e18f21561f6

Modified Files
--------------
src/backend/utils/time/combocid.c |   43 ++++++++++++++++++++-----------------
1 file changed, 23 insertions(+), 20 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix failure to consider failure cases in GetComboCommandId().
@ 2015-11-26 18:23 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-11-26 18:23 UTC (permalink / raw)
  To: pgsql-committers

Fix failure to consider failure cases in GetComboCommandId().

Failure to initially palloc the comboCids array, or to realloc it bigger
when needed, left combocid's data structures in an inconsistent state that
would cause trouble if the top transaction continues to execute.  Noted
while examining a user complaint about the amount of memory used for this.
(There's not much we can do about that, but it does point up that repalloc
failure has a non-negligible chance of occurring here.)

In HEAD/9.5, also avoid possible invocation of memcpy() with a null pointer
in SerializeComboCIDState; cf commit 13bba0227.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/daefb9810807709d13ce42cc0e7220d77b368be9

Modified Files
--------------
src/backend/utils/time/combocid.c |   43 ++++++++++++++++++++-----------------
1 file changed, 23 insertions(+), 20 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix failure to consider failure cases in GetComboCommandId().
@ 2015-11-26 18:23 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-11-26 18:23 UTC (permalink / raw)
  To: pgsql-committers

Fix failure to consider failure cases in GetComboCommandId().

Failure to initially palloc the comboCids array, or to realloc it bigger
when needed, left combocid's data structures in an inconsistent state that
would cause trouble if the top transaction continues to execute.  Noted
while examining a user complaint about the amount of memory used for this.
(There's not much we can do about that, but it does point up that repalloc
failure has a non-negligible chance of occurring here.)

In HEAD/9.5, also avoid possible invocation of memcpy() with a null pointer
in SerializeComboCIDState; cf commit 13bba0227.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/b7fc1dd1fed3c38b1d95c6433b65cbbd22c0323f

Modified Files
--------------
src/backend/utils/time/combocid.c |   38 +++++++++++++++++++------------------
1 file changed, 20 insertions(+), 18 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix failure to consider failure cases in GetComboCommandId().
@ 2015-11-26 18:23 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-11-26 18:23 UTC (permalink / raw)
  To: pgsql-committers

Fix failure to consider failure cases in GetComboCommandId().

Failure to initially palloc the comboCids array, or to realloc it bigger
when needed, left combocid's data structures in an inconsistent state that
would cause trouble if the top transaction continues to execute.  Noted
while examining a user complaint about the amount of memory used for this.
(There's not much we can do about that, but it does point up that repalloc
failure has a non-negligible chance of occurring here.)

In HEAD/9.5, also avoid possible invocation of memcpy() with a null pointer
in SerializeComboCIDState; cf commit 13bba0227.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/6823bc282943b44a57cdde3921621f7d83598d83

Modified Files
--------------
src/backend/utils/time/combocid.c |   38 +++++++++++++++++++------------------
1 file changed, 20 insertions(+), 18 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix failure to consider failure cases in GetComboCommandId().
@ 2015-11-26 18:23 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-11-26 18:23 UTC (permalink / raw)
  To: pgsql-committers

Fix failure to consider failure cases in GetComboCommandId().

Failure to initially palloc the comboCids array, or to realloc it bigger
when needed, left combocid's data structures in an inconsistent state that
would cause trouble if the top transaction continues to execute.  Noted
while examining a user complaint about the amount of memory used for this.
(There's not much we can do about that, but it does point up that repalloc
failure has a non-negligible chance of occurring here.)

In HEAD/9.5, also avoid possible invocation of memcpy() with a null pointer
in SerializeComboCIDState; cf commit 13bba0227.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/47e189b5a10fdc5b983d1917e6f641ee80fa500b

Modified Files
--------------
src/backend/utils/time/combocid.c |   38 +++++++++++++++++++------------------
1 file changed, 20 insertions(+), 18 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix failure to consider failure cases in GetComboCommandId().
@ 2015-11-26 18:23 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-11-26 18:23 UTC (permalink / raw)
  To: pgsql-committers

Fix failure to consider failure cases in GetComboCommandId().

Failure to initially palloc the comboCids array, or to realloc it bigger
when needed, left combocid's data structures in an inconsistent state that
would cause trouble if the top transaction continues to execute.  Noted
while examining a user complaint about the amount of memory used for this.
(There's not much we can do about that, but it does point up that repalloc
failure has a non-negligible chance of occurring here.)

In HEAD/9.5, also avoid possible invocation of memcpy() with a null pointer
in SerializeComboCIDState; cf commit 13bba0227.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/cb7ea8d9857b75d599f249bb6119c4fab08f9d14

Modified Files
--------------
src/backend/utils/time/combocid.c |   38 +++++++++++++++++++------------------
1 file changed, 20 insertions(+), 18 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2015-11-26 18:23 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-11-26 18:23 pgsql: Fix failure to consider failure cases in GetComboCommandId(). Tom Lane <tgl@sss.pgh.pa.us>
2015-11-26 18:23 pgsql: Fix failure to consider failure cases in GetComboCommandId(). Tom Lane <tgl@sss.pgh.pa.us>
2015-11-26 18:23 pgsql: Fix failure to consider failure cases in GetComboCommandId(). Tom Lane <tgl@sss.pgh.pa.us>
2015-11-26 18:23 pgsql: Fix failure to consider failure cases in GetComboCommandId(). Tom Lane <tgl@sss.pgh.pa.us>
2015-11-26 18:23 pgsql: Fix failure to consider failure cases in GetComboCommandId(). Tom Lane <tgl@sss.pgh.pa.us>
2015-11-26 18:23 pgsql: Fix failure to consider failure cases in GetComboCommandId(). Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox