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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Vladimir Sitnikov-2
  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: ff6c8229282afd10599321a6055635306fe1c6fd
      https://github.com/pgjdbc/pgjdbc/commit/ff6c8229282afd10599321a6055635306fe1c6fd
  Author: Brett Okken <[hidden email]>
  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.