Re: [sqlsmith] Infinite recursion in bitshift

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [sqlsmith] Infinite recursion in bitshift
Дата
Msg-id 17165.1476473076@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [sqlsmith] Infinite recursion in bitshift  (Andreas Seltenreich <seltenreich@gmx.de>)
Ответы Re: [sqlsmith] Infinite recursion in bitshift  (Andreas Seltenreich <seltenreich@gmx.de>)
Список pgsql-hackers
Andreas Seltenreich <seltenreich@gmx.de> writes:
> sqlsmith just found another crasher:
>     select bit '1' >> (-2^31)::int;

Nice catch :-)

> 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.
        regards, tom lane



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

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