Changeset 72209 in webkit for trunk/JavaScriptCore/wtf/text/WTFString.cpp
- Timestamp:
- Nov 17, 2010, 8:36:04 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/text/WTFString.cpp
r72114 r72209 37 37 38 38 using namespace Unicode; 39 using namespace std; 39 40 40 41 // Construct a string with UTF-16 data. … … 697 698 // have a good chance of being able to write the string into the 698 699 // buffer without reallocing (say, 1.5 x length). 700 if (length > numeric_limits<unsigned>::max() / 3) 701 return CString(); 699 702 Vector<char, 1024> bufferVector(length * 3); 700 703
Note:
See TracChangeset
for help on using the changeset viewer.