Some FormatMessage calls in libj2pkcs11 using FORMAT_MESSAGE_ALLOCATE_BUFFER 
should check return values, to avoid issues in case of failed allocations.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - JDK-8398153

Changes: https://git.openjdk.org/jdk/pull/34047/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=34047&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8398153
  Stats: 39 lines in 2 files changed: 19 ins; 4 del; 16 mod
  Patch: https://git.openjdk.org/jdk/pull/34047.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/34047/head:pull/34047

PR: https://git.openjdk.org/jdk/pull/34047

Reply via email to