git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 1c7a0b3) | patch
Fix fuzzy error handling in pg_basebackup when opening gzFile
Tue, 4 Feb 2020 04:56:04 +0000 (13:56 +0900)
Tue, 4 Feb 2020 04:56:04 +0000 (13:56 +0900)
commit 177be9edf4bb966400db7769d61e479aa0fe0201
Fix fuzzy error handling in pg_basebackup when opening gzFile

First, this code did not bother checking for a failure when calling
dup(). Then, per zlib, gzerror() returns NULL for a NULL input, which
can happen if passing down to gzdopen() an invalid file descriptor or if
there was an allocation failure.

No back-patch is done as this would unlikely be a problem in the field.

Per Coverity.

Reported-by: Tom Lane
src/bin/pg_basebackup/pg_basebackup.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /