postgresql/src
Heikki Linnakangas 5ba13f8c04 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:36:18 +03:00
..
backend Fix COUNT's logic for window run condition support 2026-07-08 00:00:34 +12:00
bin pg_dump: check for _beginthreadex() failure in parallel dump 2026-07-07 18:11:46 +03:00
common Fix off-by-one with NFC recomposition for Hangul U+11A7 (TBASE) 2026-06-05 07:50:16 +09:00
fe_utils psql: Fix expanded aligned output 2026-06-08 14:38:00 +09:00
include Restore basebackup_progress_done() to preserve ABI 2026-07-06 09:48:06 +09:00
interfaces libpq: Make error checks in the new buffer draining code more robust 2026-07-09 18:36:18 +03:00
makefiles Refactor DLSUFFIX handling 2022-03-25 08:56:02 +01:00
pl plpython: Fix NULL pointer dereferences for broken sequence and mapping objects 2026-06-29 11:43:26 +09:00
port Make pg_mkdir_p() tolerant of a concurrent directory creation. 2026-06-19 12:52:00 -04:00
template On NetBSD, force dynamic symbol resolution at postmaster start. 2022-08-30 17:28:55 -04:00
test Fix COUNT's logic for window run condition support 2026-07-08 00:00:34 +12:00
timezone Guard against unsafe conditions in usage of pg_strftime(). 2026-05-11 05:13:50 -07:00
tools Don't try to import a non-exported object in vcregress.pl 2026-06-12 10:25:55 -04:00
tutorial Doc: sync src/tutorial/basics.source with SGML documentation. 2022-11-19 13:09:14 -05:00
.gitignore
DEVELOPERS
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04: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 Stop using "-multiply_defined suppress" on macOS. 2023-09-26 21:06:21 -04:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00