Re: Fix out-of-bounds in the function GetCommandTagName

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Fix out-of-bounds in the function GetCommandTagName
Дата
Msg-id 578105.1713138868@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Fix out-of-bounds in the function GetCommandTagName  (David Rowley <dgrowleyml@gmail.com>)
Ответы Re: Fix out-of-bounds in the function GetCommandTagName  (David Rowley <dgrowleyml@gmail.com>)
Список pgsql-hackers
David Rowley <dgrowleyml@gmail.com> writes:
> I think the change makes sense. I don't see any good reason to define
> COMMAND_TAG_NEXTTAG or force the compiler's hand when it comes to
> sizing that array.
> Clearly, Coverity does not understand that we'll never call any of
> those GetCommandTag* functions with COMMAND_TAG_NEXTTAG.

+1, but would this also allow us to get rid of any default:
cases in switches on command tags?

            regards, tom lane



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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Stability of queryid in minor versions
Следующее
От: jian he
Дата:
Сообщение: Re: SQL:2011 application time