Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id B9DD3B5DBB6 for ; Mon, 23 May 2011 15:02:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 47149-03 for ; Mon, 23 May 2011 18:02:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og117.obsmtp.com (exprod7og117.obsmtp.com [64.18.2.6]) by mail.postgresql.org (Postfix) with ESMTP id 29BD1B5D8BD for ; Mon, 23 May 2011 15:02:23 -0300 (ADT) Received: from mail-ew0-f54.google.com ([209.85.215.54]) (using TLSv1) by exprod7ob117.postini.com ([64.18.6.12]) with SMTP ID DSNKTdqhLVlapX6E8O/7aXjHC4vuLkxw+Zqo@postini.com; Mon, 23 May 2011 11:02:24 PDT Received: by ewy1 with SMTP id 1so2604469ewy.41 for ; Mon, 23 May 2011 11:02:17 -0700 (PDT) Received: by 10.14.96.206 with SMTP id r54mr928338eef.103.1306173737248; Mon, 23 May 2011 11:02:17 -0700 (PDT) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi [88.195.122.240]) by mx.google.com with ESMTPS id y3sm4795827eeh.19.2011.05.23.11.02.15 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 May 2011 11:02:16 -0700 (PDT) Message-ID: <4DDAA126.50209@enterprisedb.com> Date: Mon, 23 May 2011 21:02:14 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.1.16) Gecko/20110505 Icedove/3.0.11 MIME-Version: 1.0 To: Tom Lane CC: Dean Rasheed , pgsql-bugs@postgresql.org Subject: Re: Seg-fault in format(text) References: <12736.1306161191@sss.pgh.pa.us> <4DDA78FB.2020103@enterprisedb.com> <13683.1306164998@sss.pgh.pa.us> In-Reply-To: <13683.1306164998@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201105/161 X-Sequence-Number: 30300 On 23.05.2011 18:36, Tom Lane wrote: > Heikki Linnakangas writes: >> It's a stretch that we'd ever support two billion arguments in any form, >> but an explicit check for "arg< 0" would make me feel better. > > No objection here, especially since I've just determined that bug #6035 > is also some kind of unhandled-overflow problem... > > Do you want to take care of this one? Ok. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com