Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 8F7991337B4A for ; Thu, 11 Nov 2010 12:22:11 -0400 (AST) 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 55406-02 for ; Thu, 11 Nov 2010 16:22:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og115.obsmtp.com (exprod7og115.obsmtp.com [64.18.2.217]) by mail.postgresql.org (Postfix) with SMTP id A9F991337B34 for ; Thu, 11 Nov 2010 12:22:03 -0400 (AST) Received: from source ([209.85.215.41]) by exprod7ob115.postini.com ([64.18.6.12]) with SMTP ID DSNKTNwYKhTPsMT0A1FO4DfbKV0XbeXIfXt/@postini.com; Thu, 11 Nov 2010 08:22:03 PST Received: by mail-ew0-f41.google.com with SMTP id 25so1185799ewy.0 for ; Thu, 11 Nov 2010 08:22:01 -0800 (PST) Received: by 10.213.3.15 with SMTP id 15mr1027708ebl.92.1289492520807; Thu, 11 Nov 2010 08:22:00 -0800 (PST) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi [88.195.122.240]) by mx.google.com with ESMTPS id v56sm2089969eeh.8.2010.11.11.08.21.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Nov 2010 08:21:59 -0800 (PST) Message-ID: <4CDC1828.4080005@enterprisedb.com> Date: Thu, 11 Nov 2010 18:22:00 +0200 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.1.12) Gecko/20100913 Icedove/3.0.7 MIME-Version: 1.0 To: Tom Lane CC: Heikki Linnakangas , Yeb Havinga , pgsql-bugs@postgresql.org Subject: Re: BUG #5748: Invalid oidvector data during binary recv References: <201011111430.oABEUVPe067398@wwwmaster.postgresql.org> <15298.1289490490@sss.pgh.pa.us> <4CDC1380.2090309@enterprisedb.com> <15780.1289491883@sss.pgh.pa.us> <15909.1289492255@sss.pgh.pa.us> In-Reply-To: <15909.1289492255@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=-4.2 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3 X-Spam-Level: X-Archive-Number: 201011/75 X-Sequence-Number: 28655 On 11.11.2010 18:17, Tom Lane wrote: > BTW ... it strikes me there's another inconsistency between oidvectorin > and oidvectorrecv, namely that the former enforces a maximum of > FUNC_MAX_ARGS elements whereas the latter has no such limit. Yes, it does: > /* check length for consistency with oidvectorin() */ > if (ARR_DIMS(result)[0] > FUNC_MAX_ARGS) > ereport(ERROR, > (errcode(ERRCODE_INVALID_PARAMETER_VALUE), > errmsg("oidvector has too many elements"))); > I suspect you're looking at an old version, that was added quite recently. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com