Compiler warning about overflow in xlog.c

Поиск
Список
Период
Сортировка
От Petr Jelinek
Тема Compiler warning about overflow in xlog.c
Дата
Msg-id 5560DA7C.2030908@2ndquadrant.com
обсуждение исходный текст
Ответы Re: Compiler warning about overflow in xlog.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

my compiler complains about overflow in xlog.c.

There is variable defined as char partialfname[MAXFNAMELEN]; but is used
as snprintf(partialfname, MAXPGPATH, "%s.partial", origfname);

There is no practical issue as the actual filename length is never over
MAXFNAMELEN even with the .partial suffix but the code should still be
fixed which is what attached one-line patch does.

--
  Petr Jelinek                  http://www.2ndQuadrant.com/
  PostgreSQL Development, 24x7 Support, Training & Services

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Allow GiST distance function to return merely a lower-bound.
Следующее
От: Petr Jelinek
Дата:
Сообщение: Re: jsonb_set: update or upsert default?