From: zapov <rikard@ngs.hr>
To: pgsql-jdbc@postgresql.org
Subject: [pgjdbc/pgjdbc] 266ed6: fix: avoid integer overflow when sending large arg...
Date: Tue, 24 Oct 2017 06:23:41 -0700
Message-ID: <59ef3edd2a7b8_204b3fb77291dc3c725a1@hookshot-fe6-cp1-prd.iad.github.net.mail> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 266ed61b30e89c2840b7967a8af7ac8ab86407ff
https://github.com/pgjdbc/pgjdbc/commit/266ed61b30e89c2840b7967a8af7ac8ab86407ff
Author: zapov <rikard@ngs.hr>
Date: 2017-10-24 (Tue, 24 Oct 2017)
Changed paths:
M pgjdbc/src/main/java/org/postgresql/core/Utils.java
M pgjdbc/src/main/java/org/postgresql/core/v3/SimpleParameterList.java
A pgjdbc/src/test/java/org/postgresql/test/jdbc4/LogTest.java
Log Message:
-----------
fix: avoid integer overflow when sending large arguments (#946)
If an argument is larger than 200MB it would overflow during escaping due to optimistic size estimation.
Change size estimation so it works for even larger arguments until StringBuilder crashes with negative size error.
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: rikard@ngs.hr
Subject: Re: [pgjdbc/pgjdbc] 266ed6: fix: avoid integer overflow when sending large arg...
In-Reply-To: <59ef3edd2a7b8_204b3fb77291dc3c725a1@hookshot-fe6-cp1-prd.iad.github.net.mail>
References: <59ef3edd2a7b8_204b3fb77291dc3c725a1@hookshot-fe6-cp1-prd.iad.github.net.mail>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox