Re: BUG #18200: Undefined behaviour in interval_div

Поиск
Список
Период
Сортировка
От Dean Rasheed
Тема Re: BUG #18200: Undefined behaviour in interval_div
Дата
Msg-id CAEZATCWar0wEJw_eQudbnpZsyC5VCcJ=hngaUD0ZEWWrm2LGbA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #18200: Undefined behaviour in interval_div  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Ответы Re: BUG #18200: Undefined behaviour in interval_div  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Список pgsql-bugs
On Wed, 15 Nov 2023 at 18:14, Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
>
> looking at
> interval_mul(), there is nothing to prevent integer overflow when
> cascading down, so additional checks are needed there too (in both
> functions).
>

Here's a patch doing that. I'm inclined to back-patch this, because
this seems like something that's quite easily triggered, and returning
bogus results is not good.

Regards,
Dean

Вложения

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

Предыдущее
От: Halil Han Badem
Дата:
Сообщение: Re: BUG #18196: Databases Created in Turkish Language Will Not Run on the Latest Version of Windows
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: BUG #18196: Databases Created in Turkish Language Will Not Run on the Latest Version of Windows