pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix off-by-one in pg_xlogdump's fuzzy_open_file().
3+ messages / 1 participants
[nested] [flat]

* pgsql: Fix off-by-one in pg_xlogdump's fuzzy_open_file().
@ 2015-01-04 14:37  Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 3+ messages in thread

From: Andres Freund @ 2015-01-04 14:37 UTC (permalink / raw)
  To: pgsql-committers

Fix off-by-one in pg_xlogdump's fuzzy_open_file().

In the unlikely case of stdin (fd 0) being closed, the off-by-one
would lead to pg_xlogdump failing to open files.

Spotted by Coverity.

Backpatch to 9.3 where pg_xlogdump was introduced.

Branch
------
master

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

Modified Files
--------------
contrib/pg_xlogdump/pg_xlogdump.c |   10 +++++-----
1 file changed, 5 insertions(+), 5 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] 3+ messages in thread

* pgsql: Fix off-by-one in pg_xlogdump's fuzzy_open_file().
@ 2015-01-04 14:37  Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 3+ messages in thread

From: Andres Freund @ 2015-01-04 14:37 UTC (permalink / raw)
  To: pgsql-committers

Fix off-by-one in pg_xlogdump's fuzzy_open_file().

In the unlikely case of stdin (fd 0) being closed, the off-by-one
would lead to pg_xlogdump failing to open files.

Spotted by Coverity.

Backpatch to 9.3 where pg_xlogdump was introduced.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/835a48702e550b6c9958bb053aa6c458971536d0

Modified Files
--------------
contrib/pg_xlogdump/pg_xlogdump.c |   10 +++++-----
1 file changed, 5 insertions(+), 5 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] 3+ messages in thread

* pgsql: Fix off-by-one in pg_xlogdump's fuzzy_open_file().
@ 2015-01-04 14:37  Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 3+ messages in thread

From: Andres Freund @ 2015-01-04 14:37 UTC (permalink / raw)
  To: pgsql-committers

Fix off-by-one in pg_xlogdump's fuzzy_open_file().

In the unlikely case of stdin (fd 0) being closed, the off-by-one
would lead to pg_xlogdump failing to open files.

Spotted by Coverity.

Backpatch to 9.3 where pg_xlogdump was introduced.

Branch
------
REL9_3_STABLE

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

Modified Files
--------------
contrib/pg_xlogdump/pg_xlogdump.c |   10 +++++-----
1 file changed, 5 insertions(+), 5 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] 3+ messages in thread


end of thread, other threads:[~2015-01-04 14:37 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-01-04 14:37 pgsql: Fix off-by-one in pg_xlogdump's fuzzy_open_file(). Andres Freund <andres@anarazel.de>
2015-01-04 14:37 pgsql: Fix off-by-one in pg_xlogdump's fuzzy_open_file(). Andres Freund <andres@anarazel.de>
2015-01-04 14:37 pgsql: Fix off-by-one in pg_xlogdump's fuzzy_open_file(). Andres Freund <andres@anarazel.de>

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