Re: [HACKERS] Small fix: avoid passing null pointers to memcpy()
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] Small fix: avoid passing null pointers to memcpy() |
| Дата | |
| Msg-id | 15347.1558710650@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: [HACKERS] Small fix: avoid passing null pointers to memcpy() (didier <did447@gmail.com>) |
| Ответы |
Re: [HACKERS] Small fix: avoid passing null pointers to memcpy()
Re: [HACKERS] Small fix: avoid passing null pointers to memcpy() |
| Список | pgsql-hackers |
didier <did447@gmail.com> writes:
> A smaller version removing memset in print_aligned_text function.
> The line is redundant , header_done isn't used yet and it's either
> pg_malloc0 or null.
Hm, I see the theoretical problem ...
> Without this patch make check fails 3 tests if pg is compiled with
> -fsanitize=address,undefined
... but if that's the only evidence of an actual problem, I can't
get excited about it. ASAN complains about many things in Postgres,
and most of them are pretty hypothetical.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера