pgsql: If pk is NULL, the backend would segfault when accessing ->algo - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: If pk is NULL, the backend would segfault when accessing ->algo
Date
Msg-id E1P8ePn-0001RE-GC@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
If pk is NULL, the backend would segfault when accessing ->algo and the
following NULL check was never reached.

This problem was found by Coccinelle (null_ref.cocci from coccicheck).

Marti Raudsepp

Branch
------
REL8_4_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=4a75c7f9f1120db240b4ddccaa7d46f82bb495c0

Modified Files
--------------
contrib/pgcrypto/pgp-pubenc.c |    4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: If pk is NULL, the backend would segfault when accessing ->algo
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: If pk is NULL, the backend would segfault when accessing ->algo