Changeset 55934 in webkit
- Timestamp:
- Mar 12, 2010 1:16:06 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r55930 r55934 1 2010-03-12 Gavin Barraclough <barraclough@apple.com> 2 3 Reviewed by Geoff Garen. 4 5 Bug 36052 - [Qt] REGRESSION(55878) 63 test cases crash 6 7 r55878 changed UStringImpl::empty()->characters() to be non-null, 8 so TextBreakIteratorQt.cpp now should check the length of strings 9 (previously was assuming all strings with a non-null data pointer 10 had a length of at least 1). 11 12 * platform/text/qt/TextBreakIteratorQt.cpp: 13 (WebCore::wordBreakIterator): 14 (WebCore::characterBreakIterator): 15 (WebCore::lineBreakIterator): 16 (WebCore::sentenceBreakIterator): 17 1 18 2010-03-12 Dirk Schulze <krit@webkit.org> 2 19 -
trunk/WebCore/platform/text/qt/TextBreakIteratorQt.cpp
r51174 r55934 41 41 TextBreakIterator* wordBreakIterator(const UChar* string, int length) 42 42 { 43 if (!string )43 if (!string || !length) 44 44 return 0; 45 45 if (!iterator) … … 52 52 TextBreakIterator* characterBreakIterator(const UChar* string, int length) 53 53 { 54 if (!string )54 if (!string || !length) 55 55 return 0; 56 56 if (!iterator) … … 69 69 { 70 70 static QTextBoundaryFinder *iterator = 0; 71 if (!string )71 if (!string || !length) 72 72 return 0; 73 73 if (!iterator) … … 80 80 TextBreakIterator* sentenceBreakIterator(const UChar* string, int length) 81 81 { 82 if (!string )82 if (!string || !length) 83 83 return 0; 84 84 if (!iterator)
Note: See TracChangeset
for help on using the changeset viewer.