Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzg67-0000bw-KY for pgsql-jdbc@arkaria.postgresql.org; Wed, 13 Jan 2021 13:22:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kzg64-0001bV-Ct for pgsql-jdbc@arkaria.postgresql.org; Wed, 13 Jan 2021 13:22:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzg64-0001bO-5X for pgsql-jdbc@lists.postgresql.org; Wed, 13 Jan 2021 13:22:00 +0000 Received: from out-26.smtp.github.com ([192.30.252.209] helo=smtp.github.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzg61-00089p-NY for pgsql-jdbc@lists.postgresql.org; Wed, 13 Jan 2021 13:21:59 +0000 Received: from github.com (hubbernetes-node-5aefeb3.ash1-iad.github.net [10.56.108.68]) by smtp.github.com (Postfix) with ESMTPA id 5FC885E0763 for ; Wed, 13 Jan 2021 05:21:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1610544115; bh=avDRhj/9KI2+HJIbFdbw524FPCoM+1R5fhjlftGiTeY=; h=Date:From:To:Subject:From; b=lDyNnTckgGYA+zCcNPcU7fwGdaK6Ru/1woh4N8Dm7MlrsEXKYjEtOUDg/369YHY7x 8RK67EvIa8avRlgsg8BGVqU1tmsKdRLPhC0wdNQiyE5KutCot89l57ch490JTden5m P7uWZstslpQ/XipxvGyG/qPbqumawTCobe//VOQ4= Date: Wed, 13 Jan 2021 05:21:55 -0800 From: Brett Okken To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] ff6c82: fix: potential overflow when reading cache sizes (... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: ff6c8229282afd10599321a6055635306fe1c6fd https://github.com/pgjdbc/pgjdbc/commit/ff6c8229282afd10599321a6055635306fe1c6fd Author: Brett Okken 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.