Buffer overflow in contrib/test_parser/test_parser.c

Поиск
Список
Период
Сортировка
От Paul Guyot
Тема Buffer overflow in contrib/test_parser/test_parser.c
Дата
Msg-id 4D0A6693-6021-4A91-AB4F-B5F1404F73DB@kallisys.net
обсуждение исходный текст
Ответы Re: Buffer overflow in contrib/test_parser/test_parser.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hello,

There is a buffer overflow in sample code's test_parser.c that can yield to a segmentation fault. The next byte of the
bufferis tested against ' ' before its availability is checked. 

You will find attached a simple patch that fixes the bug.

Paul
--
Semiocast            http://semiocast.com/
+33.183627948 - 20 rue Lacaze, 75014 Paris

Вложения

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

Предыдущее
От: Joel Jacobson
Дата:
Сообщение: Generate call graphs in run-time
Следующее
От: Jim Nasby
Дата:
Сообщение: Re: Generate call graphs in run-time