pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Avoid null pointer dereference if error result lacks SQLSTATE.
7+ messages / 1 participants
[nested] [flat]

* pgsql: Avoid null pointer dereference if error result lacks SQLSTATE.
@ 2020-11-01 16:27  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-11-01 16:27 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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.

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/29ae4cd82949843d09aa02a8125a5b5087201431

Modified Files
--------------
src/bin/pg_dump/pg_backup_db.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid null pointer dereference if error result lacks SQLSTATE.
@ 2020-11-01 16:27  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-11-01 16:27 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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.

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1127377a578bde76ed09edd7cd5d8965365c8aaa

Modified Files
--------------
src/bin/pg_dump/pg_backup_db.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid null pointer dereference if error result lacks SQLSTATE.
@ 2020-11-01 16:27  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-11-01 16:27 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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.

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7d72fd9e6db686c9a499d4238d23525437adc132

Modified Files
--------------
src/bin/pg_dump/pg_backup_db.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid null pointer dereference if error result lacks SQLSTATE.
@ 2020-11-01 16:27  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-11-01 16:27 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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.

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0041941f5bbe48ff3a05942efc6aa65f4f389efc

Modified Files
--------------
src/bin/pg_dump/pg_backup_db.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid null pointer dereference if error result lacks SQLSTATE.
@ 2020-11-01 16:27  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-11-01 16:27 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7f4235032f0d75ea1ad29b192d57fee3d8fe533e

Modified Files
--------------
src/bin/pg_dump/pg_backup_db.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid null pointer dereference if error result lacks SQLSTATE.
@ 2020-11-01 16:27  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-11-01 16:27 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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.

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/dd7ae03f8c2a5dbadd4e7e1f288afcecfedbfb32

Modified Files
--------------
src/bin/pg_dump/pg_backup_db.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid null pointer dereference if error result lacks SQLSTATE.
@ 2020-11-01 16:27  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2020-11-01 16:27 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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.

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d1ac060e63961fc6d5eadd27729ff29d5a52f9f1

Modified Files
--------------
src/bin/pg_dump/pg_backup_db.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2020-11-01 16:27 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-11-01 16:27 pgsql: Avoid null pointer dereference if error result lacks SQLSTATE. Tom Lane <tgl@sss.pgh.pa.us>
2020-11-01 16:27 pgsql: Avoid null pointer dereference if error result lacks SQLSTATE. Tom Lane <tgl@sss.pgh.pa.us>
2020-11-01 16:27 pgsql: Avoid null pointer dereference if error result lacks SQLSTATE. Tom Lane <tgl@sss.pgh.pa.us>
2020-11-01 16:27 pgsql: Avoid null pointer dereference if error result lacks SQLSTATE. Tom Lane <tgl@sss.pgh.pa.us>
2020-11-01 16:27 pgsql: Avoid null pointer dereference if error result lacks SQLSTATE. Tom Lane <tgl@sss.pgh.pa.us>
2020-11-01 16:27 pgsql: Avoid null pointer dereference if error result lacks SQLSTATE. Tom Lane <tgl@sss.pgh.pa.us>
2020-11-01 16:27 pgsql: Avoid null pointer dereference if error result lacks SQLSTATE. Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox