<AWT Dev> Proposal: getGTKIcon with Unicode chars got StringIndexOutOfBoundsException
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Sat Nov 10 02:02:07 UTC 2018
Hi, Ichiroh.
The changes looks good, i think that the test from
the bug description can be integrated as well.
> Note that, src/java.desktop/unix/native/libawt_xawt/awt/swing_GTKEngine.c has same kind of code.
> But buffer handling is not same, so I could not determine, I need to change swing_GTKEngine.c or not.
I think that in swing_GTKEngine.c we have an opposite
problem when we use the java length as the size of the array,
so GetStringUTFRegion may overrun the conversionBuffer.
BTW I think we need to clean conversionBuffer before each usage.
--
Best regards, Sergey.
More information about the awt-dev
mailing list