RFR: 8283225: [AIX] ClassLoader.c produces incorrect OutOfMemory Exception when length is 0
Tyler Steele
duke at openjdk.java.net
Wed Mar 16 15:08:47 UTC 2022
On Wed, 16 Mar 2022 14:38:55 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> Btw, which malloc call was the problematic exactly? Cannot be the one in getUTF, since that one already adds len + 1 and never gets called with a zero length anyway.
Oh, good point. I guess it gets lost in the noise of my other changes.
The lines causing the issue was these ones: https://github.com/openjdk/jdk/blob/08cadb4754da0d5e68ee2df45f4098d203d14115/src/java.base/share/native/libjava/ClassLoader.c#L102-L107
-------------
PR: https://git.openjdk.java.net/jdk/pull/7829
More information about the core-libs-dev
mailing list