pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: pg_checksums: Handle read and write returns correctly
2+ messages / 1 participants
[nested] [flat]

* pgsql: pg_checksums: Handle read and write returns correctly
@ 2019-09-03 06:38 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2019-09-03 06:38 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

pg_checksums: Handle read and write returns correctly

The read() return was not checking for errors, the write() return was
not checking for short writes.

Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/flat/5de61b6b-8be9-7771-0048-860328efe027%402ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1d7a6e3eb45946db86d6d1776c55323740d955b0

Modified Files
--------------
src/bin/pg_checksums/pg_checksums.c | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)



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

* pgsql: pg_checksums: Handle read and write returns correctly
@ 2019-09-03 06:38 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2019-09-03 06:38 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

pg_checksums: Handle read and write returns correctly

The read() return was not checking for errors, the write() return was
not checking for short writes.

Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/flat/5de61b6b-8be9-7771-0048-860328efe027%402ndquadrant.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3e20b7fa408f1b5a1bf17120b55b5473e82a7e63

Modified Files
--------------
src/bin/pg_checksums/pg_checksums.c | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)



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


end of thread, other threads:[~2019-09-03 06:38 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-09-03 06:38 pgsql: pg_checksums: Handle read and write returns correctly Peter Eisentraut <peter@eisentraut.org>
2019-09-03 06:38 pgsql: pg_checksums: Handle read and write returns correctly Peter Eisentraut <peter@eisentraut.org>

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