Fix for possible pg_dump core dump

Поиск
Список
Период
Сортировка
От Pete Forman
Тема Fix for possible pg_dump core dump
Дата
Msg-id 15040.23367.934105.535123@kryten.bedford.waii.com
обсуждение исходный текст
Ответы Re: Fix for possible pg_dump core dump
Список pgsql-hackers
I've fixed this bug in 7.1RC1.  It may have been causing core dumps by
dereferencing a null function pointer.  As it was the Sun compiler
flagged it as an error.  (SC5.0 on Solaris 2.6.)


Interestingly other compilers on other platforms accept a function as
a controlling expression in an if statement without complaint.  That
expression should have scalar type, i.e. either arithmetic or pointer.
This test program demonstrates Sun catching the error.


$ cc funcptr.c
"funcptr.c", line 13: controlling expressions must have scalar type
cc: acomp failed for funcptr.c

--
Pete Forman                 -./\.- Disclaimer: This post is originated
WesternGeco                   -./\.-  by myself and does not represent
pete.forman@westerngeco.com     -./\.-  opinion of Schlumberger, Baker
http://www.crosswinds.net/~petef  -./\.-  Hughes or their divisions.

Вложения

В списке pgsql-hackers по дате отправления: