Re: Patch to fix write after end of array in hashed agg initialization
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Patch to fix write after end of array in hashed agg initialization |
| Дата | |
| Msg-id | 8040.1558537880@sss.pgh.pa.us обсуждение |
| Ответ на | Patch to fix write after end of array in hashed agg initialization (Colm McHugh <colm.mchugh@gmail.com>) |
| Ответы |
Re: Patch to fix write after end of array in hashed agg initialization
|
| Список | pgsql-hackers |
Colm McHugh <colm.mchugh@gmail.com> writes:
> Attached is a patch for a write after allocated memory which we found in
> testing. Its an obscure case but can happen if the same column is used in
> different grouping keys, as in the example below, which uses tables from
> the regress test suite (build with --enable-cassert in order to turn on
> memory warnings). Patch is against master.
I confirm the appearance of the memory-overwrite warnings in HEAD.
It looks like the bad code is (mostly) the fault of commit b5635948.
Andrew, can you take a look at this fix?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера