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 1hEf23-0003f8-9p for pgsql-committers@arkaria.postgresql.org; Thu, 11 Apr 2019 19:06:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hEf22-0001RC-0g for pgsql-committers@arkaria.postgresql.org; Thu, 11 Apr 2019 19:06:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEf21-0001Qz-MO for pgsql-committers@lists.postgresql.org; Thu, 11 Apr 2019 19:06:41 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEf1y-0001NM-GF for pgsql-committers@lists.postgresql.org; Thu, 11 Apr 2019 19:06:40 +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-0007Oo-Qu 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-0002UU-Ki 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 bT4KCkJyYW5jaAotLS0tLS0KUkVMXzEwX1NUQUJMRQoKRGV0YWlscwotLS0tLS0tCmh0dHBzOi8v Z2l0LnBvc3RncmVzcWwub3JnL3BnL2NvbW1pdGRpZmYvZTdlNzFiOWUxZWNiOGNiNmViNDkwYjBj ODJiZGM1YWE5NjA0MzY4YgoKTW9kaWZpZWQgRmlsZXMKLS0tLS0tLS0tLS0tLS0Kc3JjL2ludGVy ZmFjZXMvZWNwZy9wcmVwcm9jL3BnYy5sIHwgMiArLQoxIGZpbGUgY2hhbmdlZCwgMSBpbnNlcnRp b24oKyksIDEgZGVsZXRpb24oLSkKCg==