pgsql: Ensure that snprintf.c's fmtint() doesn't overflow whenprinting

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: Ensure that snprintf.c's fmtint() doesn't overflow whenprinting
Дата
Msg-id E1g7nZU-0000kU-MB@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: Ensure that snprintf.c's fmtint() doesn't overflow when printing  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
Ensure that snprintf.c's fmtint() doesn't overflow when printing INT64_MIN.

This isn't actually a live bug, as the output happens to be the
same.  But it upsets tools like UBSan, which makes it worthwhile to
fix.

As it's an issue without practical consequences, don't backpatch.

Author: Andres Freund
Discussion: https://postgr.es/m/20180928001121.hhx5n6dsygqxr5wu@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4868e4468590bc32f9c3afed4ec795d6a7732c9d

Modified Files
--------------
src/port/snprintf.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: Fix issues around EXPLAIN with JIT.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Ensure that snprintf.c's fmtint() doesn't overflow when printing