RFR: JDK-8292595: jdwp utf_util getWideString might leak memory
Alan Bateman
alanb at openjdk.org
Thu Aug 18 12:34:11 UTC 2022
On Thu, 18 Aug 2022 11:51:52 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> There seems to be a case where utf_util.c getWideString might leak memory in an early return.
src/jdk.jdwp.agent/share/native/libjdwp/utf_util.c line 346:
> 344: if (MultiByteToWideChar(codePage, 0, str, len, wstr, wlen) == 0) {
> 345: UTF_ERROR(("Can't get WIDE string"));
> 346: free(wstr);
Is this really an issue? I thought that UTF_ERROR prints the error and aborts the program.
-------------
PR: https://git.openjdk.org/jdk/pull/9918
More information about the serviceability-dev
mailing list