pgsql: Fix buffer overrun in isolation test program.

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема pgsql: Fix buffer overrun in isolation test program.
Дата
Msg-id E1VhKOR-0005uK-0P@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix buffer overrun in isolation test program.

Commit 061b88c732952c59741374806e1e41c1ec845d50 saved argv0 to a
global buffer without ensuring that it was zero terminated,
allowing references to it to overrun the buffer and access other
memory.  This probably would not have presented any security risk,
but could have resulted in very confusing failures if the path to
the executable was very long.

Reported by David Rowley

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/7cb964acb794078ef033cbf2e3a0e7670c8992a9

Modified Files
--------------
src/test/isolation/isolation_main.c |   10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: doc: Restore proper alphabetical order.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Minor comment corrections for sequence hashtable patch.