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 1hEf2v-0003gQ-3Y for pgsql-committers@arkaria.postgresql.org; Thu, 11 Apr 2019 19:07:37 +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-0003Ow-NP 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 1hEf24-0001qO-0J for pgsql-committers@lists.postgresql.org; Thu, 11 Apr 2019 19:06:44 +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-0005OW-4E for pgsql-committers@lists.postgresql.org; Thu, 11 Apr 2019 19:06:43 +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-0007Om-Qt 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-0002UQ-Kl 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 bT4KCkJyYW5jaAotLS0tLS0KbWFzdGVyCgpEZXRhaWxzCi0tLS0tLS0KaHR0cHM6Ly9naXQucG9z dGdyZXNxbC5vcmcvcGcvY29tbWl0ZGlmZi9lZDE2YmEzMjQ4ZDQ4NmVjOGIyZmRmYzc1ZTQ0MjYy MGQ2NzViNjE3CgpNb2RpZmllZCBGaWxlcwotLS0tLS0tLS0tLS0tLQpzcmMvaW50ZXJmYWNlcy9l Y3BnL3ByZXByb2MvcGdjLmwgfCAyICstCjEgZmlsZSBjaGFuZ2VkLCAxIGluc2VydGlvbigrKSwg MSBkZWxldGlvbigtKQoK