postgresql/src
Heikki Linnakangas bab0a2db73 libpq: Make error checks in the new buffer draining code more robust
Check explicitly for pqsecure_read() returning an error. It shouldn't
fail, and we would've caught it in the check for a short read, but
better to be explicit so that the error message is more informative.
We also shouldn't update 'inEnd' when the read fails, although that
too is just pro forma as we will bail out and close the connection on
error.

Reported-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://www.postgresql.org/message-id/34844e8c-267c-4daf-b1e0-f26059a4a7d3@eisentraut.org
Backpatch-through: 14
2026-07-09 18:35:24 +03:00
..
backend Fix EXPLAIN failure when deparsing SQL/JSON aggregates 2026-07-08 08:50:14 +09:00
bin pg_dump: check for _beginthreadex() failure in parallel dump 2026-07-07 18:11:44 +03:00
common unicode_case.c: defend against truncated UTF8. 2026-07-07 13:35:23 -07:00
fe_utils psql: Fix expanded aligned output 2026-06-08 14:37:57 +09:00
include Restore basebackup_progress_done() to preserve ABI 2026-07-06 09:47:56 +09:00
interfaces libpq: Make error checks in the new buffer draining code more robust 2026-07-09 18:35:24 +03:00
makefiles Optimize pg_popcount() with AVX-512 instructions. 2024-04-06 21:56:23 -05:00
pl plpython: Fix NULL pointer dereferences for broken sequence and mapping objects 2026-06-29 11:40:49 +09:00
port Make pg_mkdir_p() tolerant of a concurrent directory creation. 2026-06-19 12:52:00 -04:00
template Remove AIX support 2024-02-28 15:17:23 +04:00
test Fix EXPLAIN failure when deparsing SQL/JSON aggregates 2026-07-08 08:50:14 +09:00
timezone Guard against unsafe conditions in usage of pg_strftime(). 2026-05-11 05:13:49 -07:00
tools Modernize pg_bsd_indent's error/warning reporting code. 2026-06-15 12:22:55 -04:00
tutorial Update copyright for 2024 2024-01-03 20:49:05 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Don't put library-supplied -L/-I switches before user-supplied ones. 2025-07-29 15:17:41 -04:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00