Changeset 65920 in webkit
- Timestamp:
- Aug 24, 2010 12:00:56 PM (14 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r65886 r65920 1 2010-08-24 Oliver Hunt <oliver@apple.com> 2 3 Reviewed by Beth Dakin. 4 5 Make overflow guards in UString::utf8 explicit 6 https://bugs.webkit.org/show_bug.cgi?id=44540 7 8 Add an explicit overflow check prior to allocating our buffer, 9 rather than implicitly relying on the guard in convertUTF16ToUTF8. 10 11 * runtime/UString.cpp: 12 (JSC::UString::utf8): 13 1 14 2010-08-24 Yael Aharon <yael.aharon@nokia.com> 2 15 -
trunk/JavaScriptCore/runtime/UString.cpp
r65593 r65920 335 335 // have a good chance of being able to write the string into the 336 336 // buffer without reallocing (say, 1.5 x length). 337 if (length > numeric_limits<unsigned>::max() / 3) 338 return CString(); 337 339 Vector<char, 1024> bufferVector(length * 3); 338 340
Note: See TracChangeset
for help on using the changeset viewer.