aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistscan.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2023-02-22 21:27:38 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2023-02-22 21:27:38 +0200
commit5e044471a1aa8714d4fc59ea0d599009aaa05278 (patch)
tree8bf17c166ffdc2a8f879fd70719fb79f0953dfaf /src/backend/access/gist/gistscan.c
parenta75ff55c83342656266deb1890bcdd27466333ea (diff)
downloadpostgresql-5e044471a1aa8714d4fc59ea0d599009aaa05278.tar.gz
postgresql-5e044471a1aa8714d4fc59ea0d599009aaa05278.zip
Check for unbounded authentication exchanges in libpq.
A couple of code paths in CONNECTION_AWAITING_RESPONSE will eagerly read bytes off a connection that should be closed. Don't let a misbehaving server chew up client resources here; a v2 error can't be infinitely long, and a v3 error should be bounded by its original message length. For the existing error_return cases, I added some additional error messages for symmetry with the new ones, and cleaned up some message rot. Author: Jacob Champion Discussion: https://www.postgresql.org/message-id/8e729daf-7d71-6965-9687-8bc0630599b3%40timescale.com
Diffstat (limited to 'src/backend/access/gist/gistscan.c')
0 files changed, 0 insertions, 0 deletions