pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Check for fseeko() failure in pg_dump's _tarAddFile().
7+ messages / 1 participants
[nested] [flat]

* pgsql: Check for fseeko() failure in pg_dump's _tarAddFile().
@ 2020-08-09 16:39  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-08-09 16:39 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Check for fseeko() failure in pg_dump's _tarAddFile().

Coverity pointed out, not unreasonably, that we checked fseeko's
result at every other call site but these.  Failure to seek in the
temp file (note this is NOT pg_dump's output file) seems quite
unlikely, and even if it did happen the file length cross-check
further down would probably detect the problem.  Still, that's a
poor excuse for not checking the result of a system call.

Branch
------
REL_10_STABLE

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

Modified Files
--------------
src/bin/pg_dump/pg_backup_tar.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)



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

* pgsql: Check for fseeko() failure in pg_dump's _tarAddFile().
@ 2020-08-09 16:39  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-08-09 16:39 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Check for fseeko() failure in pg_dump's _tarAddFile().

Coverity pointed out, not unreasonably, that we checked fseeko's
result at every other call site but these.  Failure to seek in the
temp file (note this is NOT pg_dump's output file) seems quite
unlikely, and even if it did happen the file length cross-check
further down would probably detect the problem.  Still, that's a
poor excuse for not checking the result of a system call.

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/af3677ef1bc0c76069ff7dd00cd0339f26d372e9

Modified Files
--------------
src/bin/pg_dump/pg_backup_tar.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)



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

* pgsql: Check for fseeko() failure in pg_dump's _tarAddFile().
@ 2020-08-09 16:39  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-08-09 16:39 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Check for fseeko() failure in pg_dump's _tarAddFile().

Coverity pointed out, not unreasonably, that we checked fseeko's
result at every other call site but these.  Failure to seek in the
temp file (note this is NOT pg_dump's output file) seems quite
unlikely, and even if it did happen the file length cross-check
further down would probably detect the problem.  Still, that's a
poor excuse for not checking the result of a system call.

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/105dbff8755b35f88eafcbb48d2a3247abf54aa7

Modified Files
--------------
src/bin/pg_dump/pg_backup_tar.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)



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

* pgsql: Check for fseeko() failure in pg_dump's _tarAddFile().
@ 2020-08-09 16:39  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-08-09 16:39 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Check for fseeko() failure in pg_dump's _tarAddFile().

Coverity pointed out, not unreasonably, that we checked fseeko's
result at every other call site but these.  Failure to seek in the
temp file (note this is NOT pg_dump's output file) seems quite
unlikely, and even if it did happen the file length cross-check
further down would probably detect the problem.  Still, that's a
poor excuse for not checking the result of a system call.

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/418414daaa4fc4e88f84c6c456bd0ac1c4c86efd

Modified Files
--------------
src/bin/pg_dump/pg_backup_tar.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)



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

* pgsql: Check for fseeko() failure in pg_dump's _tarAddFile().
@ 2020-08-09 16:39  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-08-09 16:39 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Check for fseeko() failure in pg_dump's _tarAddFile().

Coverity pointed out, not unreasonably, that we checked fseeko's
result at every other call site but these.  Failure to seek in the
temp file (note this is NOT pg_dump's output file) seems quite
unlikely, and even if it did happen the file length cross-check
further down would probably detect the problem.  Still, that's a
poor excuse for not checking the result of a system call.

Branch
------
master

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

Modified Files
--------------
src/bin/pg_dump/pg_backup_tar.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)



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

* pgsql: Check for fseeko() failure in pg_dump's _tarAddFile().
@ 2020-08-09 16:39  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-08-09 16:39 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Check for fseeko() failure in pg_dump's _tarAddFile().

Coverity pointed out, not unreasonably, that we checked fseeko's
result at every other call site but these.  Failure to seek in the
temp file (note this is NOT pg_dump's output file) seems quite
unlikely, and even if it did happen the file length cross-check
further down would probably detect the problem.  Still, that's a
poor excuse for not checking the result of a system call.

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/dd63a71ebe3937e0ec965248513fb71e45ee0ec8

Modified Files
--------------
src/bin/pg_dump/pg_backup_tar.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)



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

* pgsql: Check for fseeko() failure in pg_dump's _tarAddFile().
@ 2020-08-09 16:39  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-08-09 16:39 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Check for fseeko() failure in pg_dump's _tarAddFile().

Coverity pointed out, not unreasonably, that we checked fseeko's
result at every other call site but these.  Failure to seek in the
temp file (note this is NOT pg_dump's output file) seems quite
unlikely, and even if it did happen the file length cross-check
further down would probably detect the problem.  Still, that's a
poor excuse for not checking the result of a system call.

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/26037705159489aff046d93227ab469d71616baf

Modified Files
--------------
src/bin/pg_dump/pg_backup_tar.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)



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


end of thread, other threads:[~2020-08-09 16:39 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-08-09 16:39 pgsql: Check for fseeko() failure in pg_dump's _tarAddFile(). Tom Lane <tgl@sss.pgh.pa.us>
2020-08-09 16:39 pgsql: Check for fseeko() failure in pg_dump's _tarAddFile(). Tom Lane <tgl@sss.pgh.pa.us>
2020-08-09 16:39 pgsql: Check for fseeko() failure in pg_dump's _tarAddFile(). Tom Lane <tgl@sss.pgh.pa.us>
2020-08-09 16:39 pgsql: Check for fseeko() failure in pg_dump's _tarAddFile(). Tom Lane <tgl@sss.pgh.pa.us>
2020-08-09 16:39 pgsql: Check for fseeko() failure in pg_dump's _tarAddFile(). Tom Lane <tgl@sss.pgh.pa.us>
2020-08-09 16:39 pgsql: Check for fseeko() failure in pg_dump's _tarAddFile(). Tom Lane <tgl@sss.pgh.pa.us>
2020-08-09 16:39 pgsql: Check for fseeko() failure in pg_dump's _tarAddFile(). 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