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

Semyon Sadetsky semyon.sadetsky at oracle.com
Tue Sep 19 15:02:22 UTC 2017


Please, add the corresponding noreg label to the bug.


On 09/18/2017 01:12 PM, Sergey Bylokhov wrote:
> 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.

More information about the awt-dev mailing list