pgsql: Fix configure's snprintf test so it exposes HP-UX bug.
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Fix configure's snprintf test so it exposes HP-UX bug. |
| Дата | |
| Msg-id | E1fqfth-0007iW-Cq@gemulon.postgresql.org обсуждение |
| Ответы |
Re: pgsql: Fix configure's snprintf test so it exposes HP-UX bug.
|
| Список | pgsql-committers |
Fix configure's snprintf test so it exposes HP-UX bug. Since commit e1d19c902, buildfarm member gharial has been failing with symptoms indicating that snprintf sometimes returns -1 for buffer overrun, even though it passes the added configure check. Some google research suggests that this happens only in limited cases, such as when the overrun happens partway through a %d item. Adjust the configure check to exercise it that way. Since I'm now feeling more paranoid than I was before, also make the test explicitly verify that the buffer doesn't get physically overrun. Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/9bed827b18cc4f27fb7cd7c02ad301519eca6d29 Modified Files -------------- config/c-library.m4 | 11 ++++++++--- configure | 9 ++++++--- 2 files changed, 14 insertions(+), 6 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера