Re: BUG #11905: "Error: Wrong key or corrupt data" with pgp_sym_decrypt when bytea size is 2^x - 6 where x >=14

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
Cc: Marko Tiikkaja <marko(at)joh(dot)to>, connor(dot)penhale(at)openlogic(dot)com, Pg Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #11905: "Error: Wrong key or corrupt data" with pgp_sym_decrypt when bytea size is 2^x - 6 where x >=14
Date: 2014-11-11 22:23:49
Message-ID: 18313.1415744629@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Jeff Janes <jeff(dot)janes(at)gmail(dot)com> writes:
> On Tue, Nov 11, 2014 at 10:11 AM, Marko Tiikkaja <marko(at)joh(dot)to> 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message jasen 2014-11-12 04:46:44 BUG #11944: plpgsql if-case-then syntax error.
Previous Message Tom Lane 2014-11-11 21:03:24 Re: BUG #11905: "Error: Wrong key or corrupt data" with pgp_sym_decrypt when bytea size is 2^x - 6 where x >=14