[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    [OpenJDK 2D-Dev] Withdrawn: 8263893: getPrinterNames() leaks nameArray if Java String allocation fai
From:       Alexey Ivanov <aivanov () openjdk ! java ! net>
Date:       2021-03-31 19:47:24
Message-ID: Da62uYRmY7p7AfFXyWj1LapHNazypmaCttxqSFU6veI=.e293963b-8b04-4310-9b5f-01727a9370a5 () github ! com
[Download RAW message or body]

On Fri, 19 Mar 2021 20:36:57 GMT, Alexey Ivanov <aivanov@openjdk.org> wrote:

> If `JNU_NewStringPlatform` fails to allocate new Java String object for printer \
> name, `std::bad_alloc` is thrown. The handler for the exception does not release \
> the local reference to the `nameArray`, thus it will be leaked.

This pull request has been closed without being integrated.

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

PR: https://git.openjdk.java.net/jdk/pull/3096


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic