Re: BUG #16476: pgp_sym_encrypt_bytea with compress-level=6 : Wrongkey or corrupt data - Mailing list pgsql-bugs

From Michael Paquier
Subject Re: BUG #16476: pgp_sym_encrypt_bytea with compress-level=6 : Wrongkey or corrupt data
Date
Msg-id 20200624075921.GC130132@paquier.xyz
Whole thread Raw
In response to Re: BUG #16476: pgp_sym_encrypt_bytea with compress-level=6 :Wrong key or corrupt data  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Responses Re: BUG #16476: pgp_sym_encrypt_bytea with compress-level=6 : Wrongkey or corrupt data  (Michael Paquier <michael@paquier.xyz>)
List pgsql-bugs
On Fri, Jun 12, 2020 at 02:54:12PM +0900, Kyotaro Horiguchi wrote:
> Agrred.  As far as I found, there is another point where a stream ends
> with an empty-packet at 16318 bytes, but he stream is not a compressed
> data stream.
>
> In the attached, generates a source bytes using random(). To make sure
> to stabilize the result, it does setseed(0) just before.  One concern
> of the test is there's not means to find if the test gets stale.
> Concretely if somehow the data length to cause the issue moved, the
> check would silently get no longer effective.

FYI, I have begun looking at this report, and I am reviewing the
proposed patch.
--
Michael

Attachment

pgsql-bugs by date:

Previous
From: Wilm Hoyer
Date:
Subject: AW: Stranger Character Input Bug
Next
From: PG Bug reporting form
Date:
Subject: BUG #16508: using multi-host connection string when the first host is starting fails