pgsql: Fix misplaced right paren bugs in pgstatfuncs.c.
В списке pgsql-committers по дате отправления:
| От | Kevin Grittner |
|---|---|
| Тема | pgsql: Fix misplaced right paren bugs in pgstatfuncs.c. |
| Дата | |
| Msg-id | E1VwfCc-0006OA-98@gemulon.postgresql.org обсуждение исходный текст |
| Ответы |
Re: pgsql: Fix misplaced right paren bugs in pgstatfuncs.c.
|
| Список | pgsql-committers |
Fix misplaced right paren bugs in pgstatfuncs.c. The bug would only show up if the C sockaddr structure contained zero in the first byte for a valid address; otherwise it would fail to fail, which is probably why it went unnoticed for so long. Patch submitted by Joel Jacobson after seeing an article by Andrey Karpov in which he reports finding this through static code analysis using PVS-Studio. While I was at it I moved a definition of a local variable referenced in the buggy code to a more local context. Backpatch to all supported branches. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/a133bf7031ad5b62281b21dbd6b2097d3d400f0d Modified Files -------------- src/backend/utils/adt/pgstatfuncs.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера