Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEf2w-0003gQ-AM for pgsql-committers@arkaria.postgresql.org; Thu, 11 Apr 2019 19:07:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hEf2t-0003Oy-NS for pgsql-committers@arkaria.postgresql.org; Thu, 11 Apr 2019 19:07:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEf25-00029L-EI for pgsql-committers@lists.postgresql.org; Thu, 11 Apr 2019 19:06:45 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEf20-0005OV-4F for pgsql-committers@lists.postgresql.org; Thu, 11 Apr 2019 19:06:45 +0000 Received: from gemulon.postgresql.org ([2001:4800:3e1:1::198]) by mahout.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEf1x-0007Op-R3 for pgsql-committers@lists.postgresql.org; Thu, 11 Apr 2019 19:06:37 +0000 Received: from git by gemulon.postgresql.org with local (Exim 4.89) (envelope-from ) id 1hEf1w-0002UY-LO for pgsql-committers@lists.postgresql.org; Thu, 11 Apr 2019 19:06:36 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 To: pgsql-committers@lists.postgresql.org From: Michael Meskes Subject: pgsql: Fix off-by-one check that can lead to a memory overflow in ecpg. Message-Id: Date: Thu, 11 Apr 2019 19:06:36 +0000 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Rml4IG9mZi1ieS1vbmUgY2hlY2sgdGhhdCBjYW4gbGVhZCB0byBhIG1lbW9yeSBvdmVyZmxvdyBp biBlY3BnLgoKUGF0Y2ggYnkgTGl1IEh1YWlsaW5nIDxsaXVodWFpbGluZ0Bjbi5mdWppdHN1LmNv bT4KCkJyYW5jaAotLS0tLS0KUkVMOV81X1NUQUJMRQoKRGV0YWlscwotLS0tLS0tCmh0dHBzOi8v Z2l0LnBvc3RncmVzcWwub3JnL3BnL2NvbW1pdGRpZmYvNjdmNmU2NDVlN2FjZjM1NmFiYjFiOTE0 YTFkODUzNjcwOGVjMGY2NwoKTW9kaWZpZWQgRmlsZXMKLS0tLS0tLS0tLS0tLS0Kc3JjL2ludGVy ZmFjZXMvZWNwZy9wcmVwcm9jL3BnYy5sIHwgMiArLQoxIGZpbGUgY2hhbmdlZCwgMSBpbnNlcnRp b24oKyksIDEgZGVsZXRpb24oLSkKCg==