Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bv9LB-0003sA-SE for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Oct 2016 20:44:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bv9LB-0004H1-0w for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Oct 2016 20:44:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bv9L9-0004GH-VK for pgsql-hackers@postgresql.org; Fri, 14 Oct 2016 20:44:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bv9L3-00078r-6m for pgsql-hackers@postgresql.org; Fri, 14 Oct 2016 20:44:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u9EKiEeg030870; Fri, 14 Oct 2016 16:44:14 -0400 From: Tom Lane To: Merlin Moncure cc: Andreas Seltenreich , PostgreSQL-development Subject: Re: [sqlsmith] Infinite recursion in bitshift In-reply-to: References: <87d1j2zqtz.fsf@credativ.de> <17165.1476473076@sss.pgh.pa.us> <877f9azpv1.fsf@credativ.de> <30239.1476477079@sss.pgh.pa.us> Comments: In-reply-to Merlin Moncure message dated "Fri, 14 Oct 2016 15:36:56 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30868.1476477854.1@sss.pgh.pa.us> Date: Fri, 14 Oct 2016 16:44:14 -0400 Message-ID: <30869.1476477854@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Merlin Moncure writes: > On Fri, Oct 14, 2016 at 3:31 PM, Tom Lane wrote: >> Poking around in varbit.c, I noticed some other places that were assuming >> that a typmod couldn't exceed VARBITMAXLEN. > Curious -- are there real world scenarios where this would happen? I think you'd have to be intentionally trying to break it. The largest varbit typmod you're allowed to declare normally is only ~ 80 million. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers