[jdk8u-dev] RFR: 8289301: P11Cipher should not throw out of bounds exception during padding

Zdenek Zambersky zzambers at openjdk.org
Wed Mar 15 15:19:36 UTC 2023


Fix for possible OOB exception by P11Cipher. Backported from [jdk11u-dev](https://github.com/openjdk/jdk11u-dev/commit/7d8991978bbe1cc03ba2386f5e699239ba47934c).

Only really modified `@library` (fixed by removing unnecessary path.)

Testing:
[jdk_security](https://github.com/zzambers/jdk-tester/actions/runs/4427068905/jobs/7764159983) OK (new test passed, no regressions to [master](https://github.com/zzambers/jdk-tester/actions/runs/4407115132/jobs/7720330395) )

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

Commit messages:
 - Backport 7d8991978bbe1cc03ba2386f5e699239ba47934c

Changes: https://git.openjdk.org/jdk8u-dev/pull/287/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=287&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8289301
  Stats: 124 lines in 2 files changed: 117 ins; 0 del; 7 mod
  Patch: https://git.openjdk.org/jdk8u-dev/pull/287.diff
  Fetch: git fetch https://git.openjdk.org/jdk8u-dev pull/287/head:pull/287

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


More information about the jdk8u-dev mailing list