From: Andreas Seltenreich <seltenreich@gmx.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [sqlsmith] Infinite recursion in bitshift
Date: Fri, 14 Oct 2016 21:34:42 +0200
Message-ID: <877f9azpv1.fsf@credativ.de> (raw)
In-Reply-To: <17165.1476473076@sss.pgh.pa.us>
References: <87d1j2zqtz.fsf@credativ.de>
<17165.1476473076@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: seltenreich@gmx.de, tgl@sss.pgh.pa.us
Subject: Re: [sqlsmith] Infinite recursion in bitshift
In-Reply-To: <877f9azpv1.fsf@credativ.de>
References: <87d1j2zqtz.fsf@credativ.de> <17165.1476473076@sss.pgh.pa.us> <877f9azpv1.fsf@credativ.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox