WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
118917
[Windows] A few uses of String::charactersWithNullTermination() cause code to hold onto addresses of temporaries
https://bugs.webkit.org/show_bug.cgi?id=118917
Summary
[Windows] A few uses of String::charactersWithNullTermination() cause code to...
Brent Fulgham
Reported
2013-07-19 11:58:01 PDT
The recent code cleanup that created the String::charactersWithNullTermination() method accidentally stored the address of the temporary Vector buffer in various Windows API locations where it expects the memory to be retained by an external party. This causes Windows to attempt to use potentially reclaimed memory, resulting in weird menu items and other problems. This patch fixes the handful of places where this is an issue.
Attachments
Patch
(3.81 KB, patch)
2013-07-19 14:24 PDT
,
Brent Fulgham
andersca
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2013-07-19 11:58:53 PDT
<
rdar://problem/14495809
>
Brent Fulgham
Comment 2
2013-07-19 14:24:02 PDT
Created
attachment 207144
[details]
Patch
Brent Fulgham
Comment 3
2013-07-19 14:39:17 PDT
Committed
r152927
: <
http://trac.webkit.org/changeset/152927
>
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