Potential NULL dereference found in typecmds.c

Поиск
Список
Период
Сортировка
От Michael Mueller
Тема Potential NULL dereference found in typecmds.c
Дата
Msg-id BANLkTimJxL4GTprqSqoAJ7ReZs_VkUs72g@mail.gmail.com
обсуждение исходный текст
Ответы Re: Potential NULL dereference found in typecmds.c
Список pgsql-hackers
Hi folks,

Sentry found this error last night, and it looks serious enough to
report.  The error was introduced in commit 426cafc.  Here's the code
in question, starting at line 2096:
   if (!found)   {       con = NULL;     /* keep compiler quiet */       ereport(ERROR,
(errcode(ERRCODE_UNDEFINED_OBJECT),               errmsg("constraint \"%s\" of domain \"%s\" does not exist",
           constrName, NameStr(con->conname))));   }
 

It sets 'con' to NULL and then in the next statement, dereferences it.
I'm not sure if it's possible to reach this path, but if it is
reachable it will cause a crash.

Best Regards,
Mike

-- 
Mike Mueller
Phone: (401) 405-1525
Email: mmueller@vigilantsw.com

http://www.vigilantsw.com/


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

Предыдущее
От: Brar Piening
Дата:
Сообщение: Re: flex on win64 - workaround for "flex: fatal internal error, exec failed"
Следующее
От: Michael Gould
Дата:
Сообщение: Re: Full GUID support