Bug 64730

Summary: REGRESSION (r82194): jvalueToJavaValue() does not correctly set length of String property
Product: WebKit Reporter: Steve Block <steveblock>
Component: JavaAssignee: Steve Block <steveblock>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, steveblock
Priority: P1 Keywords: Regression
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch ap: review+

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.