aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeIncrementalSort.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-11-01 11:26:16 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2020-11-01 11:26:25 -0500
commit0041941f5bbe48ff3a05942efc6aa65f4f389efc (patch)
tree10987a75f174314bc48f0eb8a1fd9bf006285298 /src/backend/executor/nodeIncrementalSort.c
parentbb62df46bcaa109d5eb1907392034024dde0886e (diff)
downloadpostgresql-0041941f5bbe48ff3a05942efc6aa65f4f389efc.tar.gz
postgresql-0041941f5bbe48ff3a05942efc6aa65f4f389efc.zip
Avoid null pointer dereference if error result lacks SQLSTATE.
Although error results received from the backend should always have a SQLSTATE field, ones generated by libpq won't, making this code vulnerable to a crash after, say, untimely loss of connection. Noted by Coverity. Oversight in commit 403a3d91c. Back-patch to 9.5, as that was.
Diffstat (limited to 'src/backend/executor/nodeIncrementalSort.c')
0 files changed, 0 insertions, 0 deletions