<AWT Dev> [10] Review Request: 8178274 Java_sun_lwawt_macosx_NSEvent_nsToJavaKeyInfo() overreads jchar variable

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Mon Sep 18 20:12:58 UTC 2017


Hello,
Please review the fix for jdk10.

Bug: https://bugs.openjdk.java.net/browse/JDK-8178274
Webrev can be found at: http://cr.openjdk.java.net/~serb/8178274/webrev.00

We pass jchar to the SetIntArrayRegion() but jint is expected, and 
SetIntArrayRegion() over-reads memory allocated on stack for 
'testDeadChar' variable.
In the fix the size of the testDeadChar was changed to the jint.

The fix was contributed by the Artem Smotrakov.


-- 
Best regards, Sergey.


More information about the awt-dev mailing list