Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jo0Jx-0003vW-Ld for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Jun 2020 07:59:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jo0Jw-0002Qi-BG for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Jun 2020 07:59:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jo0Ju-0002Qb-Gz for pgsql-bugs@lists.postgresql.org; Wed, 24 Jun 2020 07:59:48 +0000 Received: from [66.111.4.28] (helo=out4-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jo0Jn-0003yp-8w for pgsql-bugs@lists.postgresql.org; Wed, 24 Jun 2020 07:59:46 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id B5DED5C0108; Wed, 24 Jun 2020 03:59:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 24 Jun 2020 03:59:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=ygXbWhOkHmFLHE1GWRhEMoZFhkh xyUc2kXs90+LQiKY=; b=Pyu/D5X7Xx9o4Helb/GmvBmwHJ6MDiB/yTFTmxScliW zTR8QIg0bNKq9fWWlZTZz/BqQyo5rePC9pHzMYi0poHkVLyd++W9uUc7ta41AgDQ TzUgQz3zAnNNal9bX2a53ESmxec9eFhEBNTglZqZmvLOpUuCIU7Td/f3FwvfzGRH SlEI2lXXmqyin+r67yXmT7EMG0NhyCnP3h0tWqJoKQ5tE7Vb4ox9SZWBErFkTKGA 67aDqdbHgseiZQ44VG3DCXsCMwz3KBf5KE5nvHePUNg9q4kFwaerH507AgvkJqgD 0p8PrQ5/qn+azL/N9iD2PglE7ncpkt5qgBDGdXRjRGA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=ygXbWh OkHmFLHE1GWRhEMoZFhkhxyUc2kXs90+LQiKY=; b=vUB+LHQRi40VpRJq99FT0n SA+ervYzP6tfH9WqP4GBcqlsYk7Ayksict+5SxiUAlWzBJO8h8MAywtsam86gX59 OSc0UryEYlRZtQ7eWFuxspteYbm1bCeBOnaNns0bwY6YPoQAGa+o8xmdSOIFcU2Y mCvy5sGeSottQQBNzKhGKEt2XISQTMjV2ySBchwmZEfBEnOXdfymCmQZizPVHhe8 Q2XeZyPIJKxeYwVR9PWcplewzhlaGkE1T+1ekKacpypJ/tXQ8+OMexSv+h8VnjZQ kzw4wVcCGTHHOwy1zu03kho8Ws9DSkrQZ4bnlswSlV3m1Z87pCOArnrRmUVc0cdw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudekiedguddviecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdejtddmnecujfgurhepff fhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghq uhhivghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvg hrnhepvdegudeuhfdtueeltedtveejheehieevueeigeelteegleejleeiueeiheegvefh necukfhppeduuddurddutddvrddukedtrddukeehnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 1C8413280059; Wed, 24 Jun 2020 03:59:24 -0400 (EDT) Date: Wed, 24 Jun 2020 16:59:21 +0900 From: Michael Paquier To: Kyotaro Horiguchi Cc: tgl@sss.pgh.pa.us, jeff.janes@gmail.com, frank.gagnepain@intm.fr, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16476: pgp_sym_encrypt_bytea with compress-level=6 : Wrong key or corrupt data Message-ID: <20200624075921.GC130132@paquier.xyz> References: <20200612.105131.63288858615945654.horikyota.ntt@gmail.com> <608105.1591927045@sss.pgh.pa.us> <20200612.145412.475791851624925277.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TiqCXmo5T1hvSQQg" Content-Disposition: inline In-Reply-To: <20200612.145412.475791851624925277.horikyota.ntt@gmail.com> X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.28 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --TiqCXmo5T1hvSQQg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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 --TiqCXmo5T1hvSQQg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl7zB9kACgkQnvQgOdby QH2CORAAkIditOe1FLi1pp3kIjJT8CQNdyIH3GXuVt9ZFBpB0QqopnYRo/tVXrCH K6qNu1OqSB4fW0p3196YDJBeOhKpiOefx7RyzIoqMBzQ9znsKmMcmYdmZWNxy8pn T3ZrfK+vZ5UDFhSFxvegqSwRFc5BPsyxnTlylpNIa71hNWo/10B9MUSEH4InWANX M/GM2di+11JP/OnLUPqcd3yGIToOO9tb9jSJ0FMYsCRRdQhzNYAfBVTIsin3ShPX 50IgsPS18XPL/XCrENEgnm/7zQNOtuzHcg7m3D8Av+GBib6o861uYlF/UA9wP4tu ydEmffHCVBlE7jrHfco16YC9X2m/tSi0pviSqXEiB+8WZpJiezDA+9OEHNB07QTX AL9aG8tiY43fAo0RWjiy6lkyEIzQQHGJP9jdCBx5anMSqhFegkLCXtuEqW3Psfy5 z/rUeJfp23nZt2ftksFG6AxIZyWWAsOnugdMlfVsvgN50jVSLWFxheEwi5bm0K52 gOy5QKsBQMrBHiXkF/gbnIkUuUUX+I6DNFwYklKln1uuk1hQvHDuU3+qCr23ZxQ7 3zfmJxsfxA6QHomgLEfKb1N51b2t95NaQrnJ8YdXx4cbUzwJK2bCn0hqkhl3m1sn uSY8GaoM/BZ0fbwWSJ+9fhRQS0aSevr8uAOe8xpIrHhoCFccjVA= =/z/y -----END PGP SIGNATURE----- --TiqCXmo5T1hvSQQg--