[PATCH] Fix possible overflow on tuplesort.c

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема [PATCH] Fix possible overflow on tuplesort.c
Дата
Msg-id CAEudQAqY_DtfrKMD+ZbGNcEPf5-QK=8FA=BYX=Hd3wFTDEEOFg@mail.gmail.com
обсуждение исходный текст
Ответы Re: [PATCH] Fix possible overflow on tuplesort.c
Список pgsql-hackers
Hi,

When multiplying variables, the overflow will take place anyway, and only then will the meaningless product be explicitly promoted to type int64.
It is one of the operands that should have been cast instead to avoid the overflow.

regards,
Ranier Vilela
Вложения

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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: sqlsmith crash incremental sort
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Poll: are people okay with function/operator table redesign?