9.6.10 build warning on Fedora 28

Поиск
Список
Период
Сортировка
От Devrim Gündüz
Тема 9.6.10 build warning on Fedora 28
Дата
Msg-id d1c8516994c4e4aaff18212e7bbb75301ce30909.camel@gunduz.org
обсуждение исходный текст
Ответы Re: 9.6.10 build warning on Fedora 28
Список pgsql-hackers
Hi,

Just noticed this on Fedora 28 box (GCC 8.1.1)

=====================================================================
pgbench.c: In function 'ParseScript':
pgbench.c:2640:20: warning: '__builtin___sprintf_chk' may write a terminating
nul past the end of the destination [-Wformat-overflow=]
   sprintf(var, "$%d", cmd->argc);
                    ^
In file included from /usr/include/stdio.h:862,
                 from ../../../src/include/c.h:81,
                 from ../../../src/include/postgres_fe.h:25,
                 from pgbench.c:34:
/usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output
between 3 and 13 bytes into a destination of size 12
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       __bos (__s), __fmt, __va_arg_pack ());
=====================================================================

Regards,

--
Devrim Gündüz
EnterpriseDB: https://www.enterprisedb.com
PostgreSQL Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Temporary tables prevent autovacuum, leading to XID wraparound
Следующее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: [PATCH] Improve geometric types