pgsql: Fix possible NULL dereference in ExecAlterObjectDependsStmt - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Fix possible NULL dereference in ExecAlterObjectDependsStmt
Date
Msg-id E1apG03-00044b-Ta@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix possible NULL dereference in ExecAlterObjectDependsStmt

I used the wrong variable here.  Doesn't make a difference today because
the only plausible caller passes a non-NULL variable, but someday it
will be wrong, and even today's correctness is subtle: the caller that
does pass a NULL is never invoked because of object type constraints.
Surely not a condition to rely on.

Noted by Coverity

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/bd905a0d0416628b4aef153463c1f5e5b80b3e96

Modified Files
--------------
src/backend/commands/alter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Further minor improvement in generic_xlog.c: always say REGBUF_S
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Add the "snapshot too old" feature