<AWT Dev> RFR: 8211826: StringIndexOutOfBoundsException happens via GetStringUTFRegion()

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Tue Apr 2 21:55:11 UTC 2019


Hi, Ichiroh.

On 28/03/2019 06:27, Ichiroh Takiguchi wrote:
> * On swing_GTKEngine.c, maximum length size for String data is arranged.
>      -static char conversionBuffer[CONV_BUFFER_SIZE];
>      +static char conversionBuffer[(CONV_BUFFER_SIZE - 1) * 3 + 1];

As far as I understand that this will allocate the array for the worst case, should we cleanup it before each usage? Otherwise we can mix different strings.


-- 
Best regards, Sergey.


More information about the awt-dev mailing list