git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: b17ff07) | patch
Avoid null pointer dereference if error result lacks SQLSTATE.
Sun, 1 Nov 2020 16:26:16 +0000 (11:26 -0500)
Sun, 1 Nov 2020 16:26:16 +0000 (11:26 -0500)
commit 7f4235032f0d75ea1ad29b192d57fee3d8fe533e
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.
src/bin/pg_dump/pg_backup_db.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /