summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane2019-05-13 14:53:19 +0000
committerTom Lane2019-05-13 14:53:19 +0000
commit8eaba0b93da10659f8796d6e740f656476d4925f (patch)
tree47b13c6ce987544fcc552d55d2e0c341bdef70dc /doc/src
parentaf16f0a7045da816d33d8b23045eca5c2473342c (diff)
Fix misuse of an integer as a bool.
pgtls_read_pending is declared to return bool, but what the underlying SSL_pending function returns is a count of available bytes. This is actually somewhat harmless if we're using C99 bools, but in the back branches it's a live bug: if the available-bytes count happened to be a multiple of 256, it would get converted to a zero char value. On machines where char is signed, counts of 128 and up could misbehave as well. The net effect is that when using SSL, libpq might block waiting for data even though some has already been received. Broken by careless refactoring in commit 4e86f1b16, so back-patch to 9.5 where that came in. Per bug #15802 from David Binderman. Discussion: https://postgr.es/m/15802-f0911a97f0346526@postgresql.org
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions