RESOLVED FIXED64730
REGRESSION (r82194): jvalueToJavaValue() does not correctly set length of String property
https://bugs.webkit.org/show_bug.cgi?id=64730
Summary REGRESSION (r82194): jvalueToJavaValue() does not correctly set length of Str...
Steve Block
Reported 2011-07-18 10:02:35 PDT
jvalueToJavaValue() does not correctly set the length of the String property created for JavaTypeString because the character array returned by getUCharactersFromJStringInEnv() is not null-terminated. This is due to http://trac.webkit.org/changeset/82194, which switched from using GetStringUTFChars() (via getCharactersFromJString()) to using GetStringChars() (via getUCharactersFromJStringInEnv()). GetStringUTFChars() does null-terminate the character array whereas GetStringChars() does not.
Attachments
Patch (1.85 KB, patch)
2011-07-19 02:46 PDT, Steve Block
ap: review+
Alexey Proskuryakov
Comment 1 2011-07-18 14:17:19 PDT
Marking as a regression per the above.
Steve Block
Comment 2 2011-07-19 02:46:59 PDT
Steve Block
Comment 3 2011-07-19 08:57:19 PDT
Note You need to log in before you can comment on or make changes to this bug.