Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XoJr5-00069x-2m for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Nov 2014 22:24:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XoJr4-0004Vc-1n for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Nov 2014 22:24:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XoJqx-0004H4-Qe for pgsql-bugs@postgresql.org; Tue, 11 Nov 2014 22:23:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XoJqs-0008Dk-6z for pgsql-bugs@postgresql.org; Tue, 11 Nov 2014 22:23:55 +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 sABMNnP9018314; Tue, 11 Nov 2014 17:23:49 -0500 From: Tom Lane To: Jeff Janes cc: Marko Tiikkaja , connor.penhale@openlogic.com, Pg Bugs Subject: Re: BUG #11905: "Error: Wrong key or corrupt data" with pgp_sym_decrypt when bytea size is 2^x - 6 where x >=14 In-reply-to: References: <20141107215638.2527.18189@wrigleys.postgresql.org> <54625148.2060105@joh.to> Comments: In-reply-to Jeff Janes message dated "Tue, 11 Nov 2014 12:33:39 -0800" Date: Tue, 11 Nov 2014 17:23:49 -0500 Message-ID: <18313.1415744629@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Jeff Janes writes: > On Tue, Nov 11, 2014 at 10:11 AM, Marko Tiikkaja wrote: >> This sounds a lot like another bug I've seen. Can you try this patch? > That fixes it. I've tested all lengths from 1 to 133,000 > I've added a regression test to it, in the attached. Pushed. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs