pgsql: Fix possible NULL dereference in ExecAlterObjectDependsStmt

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Fix possible NULL dereference in ExecAlterObjectDependsStmt
Дата
Msg-id E1apG03-00044b-Ta@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Further minor improvement in generic_xlog.c: always say REGBUF_S
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Add the "snapshot too old" feature