[pgjdbc/pgjdbc] ff6c82: fix: potential overflow when reading cache sizes (...

From: Brett Okken <noreply(at)github(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] ff6c82: fix: potential overflow when reading cache sizes (...
Date: 2021-01-13 13:21:55
Message-ID: pgjdbc/pgjdbc/push/refs/heads/master/3437f0-ff6c82@github.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: ff6c8229282afd10599321a6055635306fe1c6fd
https://github.com/pgjdbc/pgjdbc/commit/ff6c8229282afd10599321a6055635306fe1c6fd
Author: Brett Okken <brett(dot)okken(dot)os(at)gmail(dot)com>
Date: 2021-01-13 (Wed, 13 Jan 2021)

Changed paths:
M pgjdbc/src/main/java/org/postgresql/core/QueryExecutorBase.java
M pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java

Log Message:
-----------
fix: potential overflow when reading cache sizes (#2009)

When creating LruCache instance, integer arithmetic is used to convert
from megabytes to bytes, even though LruCache takes a long value.

Browse pgsql-jdbc by date

  From Date Subject
Next Message Abhishek Kumar 2021-01-18 15:50:53 [pgjdbc/pgjdbc] bad34f: Correct code style for pgjdbc according to new che...
Previous Message Dave Cramer 2021-01-12 13:51:52 Re: Streaming ResultSet rows instead of buffering them in memory