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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3355443) | patch
Correct off-by-one when reading from pipe
2013年7月15日 14:42:27 +0000 (10:42 -0400)
2013年7月15日 14:42:27 +0000 (10:42 -0400)
commit 03010366b6fb61aac0998f234478cc745ff97b0c
Correct off-by-one when reading from pipe

In pg_basebackup.c:reached_end_position(), we're reading from an
internal pipe with our own background process but we're possibly
reading more bytes than will actually fit into our buffer due to
an off-by-one error. As we're reading from an internal pipe
there's no real risk here, but it's good form to not depend on
such convenient arrangements.

Bug spotted by the Coverity scanner.

Back-patch to 9.2 where this showed up.
src/bin/pg_basebackup/pg_basebackup.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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