RFR: 8265490: Unterminated string passed to FindClass() in hotspot test
Thomas Stuefe
stuefe at openjdk.java.net
Wed Apr 21 15:34:33 UTC 2021
On Wed, 21 Apr 2021 14:57:09 GMT, Harold Seigel <hseigel at openjdk.org> wrote:
> Please review this small fix for JDK-8265490 to null terminate the char* that test FindClassUtf8 passes to JNI_FindClass(). The modified test was run on Linux, Mac OS, and Windows platforms using Mach5 hs-tiers 1 and 2.
>
> Thanks, Harold
The original code was interesting :) but beside fixing the zero termination issue, your version is also endian-safe.
-------------
Marked as reviewed by stuefe (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/3604
More information about the hotspot-runtime-dev
mailing list