WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
64730
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+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
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
Created
attachment 101291
[details]
Patch
Steve Block
Comment 3
2011-07-19 08:57:19 PDT
Committed
r91260
: <
http://trac.webkit.org/changeset/91260
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug