pgsql: Fix undersized result buffer in pset_quoted_string().

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix undersized result buffer in pset_quoted_string().
Дата
Msg-id E1XiX4W-0003Ax-L7@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix undersized result buffer in pset_quoted_string().

The malloc request was 1 byte too small for the worst-case output.
This seems relatively unlikely to cause any problems in practice,
as the worst case only occurs if the input string contains no
characters other than single-quote or newline, and even then
malloc alignment padding would probably save the day.  But it's
definitely a bug.

David Rowley

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/c53a82b99d98df393d7ba308bf1586b2201d0d65

Modified Files
--------------
src/bin/psql/command.c |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Improve planning of btree index scans using ScalarArrayOpExpr qu
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix undersized result buffer in pset_quoted_string().