Changeset 127644 in webkit
- Timestamp:
- Sep 5, 2012 1:58:54 PM (12 years ago)
- Location:
- trunk/Source/WebKit/blackberry
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/blackberry/Api/JavaScriptVariant.cpp
r125324 r127644 148 148 JavaScriptVariant& JavaScriptVariant::operator=(const JavaScriptVariant& v) 149 149 { 150 if (&v == this) 151 return *this; 152 150 153 switch (v.type()) { 151 154 case Boolean: -
trunk/Source/WebKit/blackberry/ChangeLog
r127628 r127644 1 2012-09-05 Benjamin C Meyer <bmeyer@rim.com> 2 3 [BlackBerry] JavaScriptVariant can crash when operator= is called with itself 4 https://bugs.webkit.org/show_bug.cgi?id=95859 5 6 Reviewed by George Staikos. 7 8 * Api/JavaScriptVariant.cpp: 9 (BlackBerry::WebKit::JavaScriptVariant::operator=): 10 When JavaScriptVariant contains a string and operator= is 11 called with itself the memory will be free'd in 'this' and 12 then a copy will be attempted from 'that' resulting in a crash. 13 1 14 2012-09-05 Leo Yang <leoyang@rim.com> 2 15
Note: See TracChangeset
for help on using the changeset viewer.