[jdk8u-dev] RFR: 8302017: Allocate BadPaddingException only if it will be thrown [v3]

Alexey Bakhtin abakhtin at openjdk.org
Fri Dec 15 17:43:00 UTC 2023


> Almost clean backport from [JDK11 PR](https://github.com/openjdk/jdk11u-dev/pull/2383)
> The only changes in the RSASignature::engineVerify() method: getDigestValue() is called outside of try/catch block

Alexey Bakhtin has updated the pull request incrementally with one additional commit since the last revision:

  Move signature length verification out of try block

-------------

Changes:
  - all: https://git.openjdk.org/jdk8u-dev/pull/403/files
  - new: https://git.openjdk.org/jdk8u-dev/pull/403/files/2110d9f5..8e33ae82

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=403&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=403&range=01-02

  Stats: 5 lines in 1 file changed: 1 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk8u-dev/pull/403.diff
  Fetch: git fetch https://git.openjdk.org/jdk8u-dev.git pull/403/head:pull/403

PR: https://git.openjdk.org/jdk8u-dev/pull/403


More information about the jdk8u-dev mailing list