Re: [sqlsmith] Infinite recursion in bitshift

Поиск
Список
Период
Сортировка
От Andreas Seltenreich
Тема Re: [sqlsmith] Infinite recursion in bitshift
Дата
Msg-id 877f9azpv1.fsf@credativ.de
обсуждение исходный текст
Ответ на Re: [sqlsmith] Infinite recursion in bitshift  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [sqlsmith] Infinite recursion in bitshift  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane writes:

>> This is due to an integer overflow in bitshiftright()/bitshiftleft()
>> leading to them recursively calling each other.  Patch attached.
>
> Seems sane, though I wonder if it'd be better to use -INT_MAX rather
> than -VARBITMAXLEN.

I am undecided between those two.  -INT_MAX might be a more precise fix
for the problem, but the extra distance to the danger zone was kind of
soothing :-).

regards,
Andreas



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [sqlsmith] Infinite recursion in bitshift
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [sqlsmith] Infinite recursion in bitshift