[sqlsmith] Infinite recursion in bitshift

From: Andreas Seltenreich <seltenreich(at)gmx(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: [sqlsmith] Infinite recursion in bitshift
Date: 2016-10-14 19:13:44
Message-ID: 87d1j2zqtz.fsf@credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

sqlsmith just found another crasher:

select bit '1' >> (-2^31)::int;

This is due to an integer overflow in bitshiftright()/bitshiftleft()
leading to them recursively calling each other. Patch attached.

regards,
Andreas

Attachment Content-Type Size
0001-Fix-possible-infinite-recursion-on-bitshift.patch text/x-diff 1.6 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-10-14 19:24:36 Re: [sqlsmith] Infinite recursion in bitshift
Previous Message Andres Freund 2016-10-14 18:51:52 Re: process type escape for log_line_prefix