Changeset 65493 in webkit for trunk/JavaScriptCore
- Timestamp:
- Aug 17, 2010, 4:54:39 AM (15 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r65479 r65493 1 2010-08-17 Yuta Kitamura <[email protected]> 2 3 Reviewed by Shinichiro Hamaji. 4 5 Avoid uninitialized memory read in StringImpl::find(). 6 7 REGRESSION(r65468): Crashes in StringImpl::find 8 https://bugs.webkit.org/show_bug.cgi?id=44099 9 10 * wtf/text/StringImpl.cpp: 11 (WTF::StringImpl::find): 12 1 13 2010-08-16 Gavin Barraclough <[email protected]> 2 14 -
trunk/JavaScriptCore/wtf/text/StringImpl.cpp
r65468 r65493 543 543 } 544 544 545 for (unsigned i = 0; i < =delta; ++i) {545 for (unsigned i = 0; i < delta; ++i) { 546 546 if (searchHash == matchHash && equal(searchCharacters + i, matchString, matchLength)) 547 547 return index + i; … … 549 549 searchHash -= searchCharacters[i]; 550 550 } 551 if (searchHash == matchHash && equal(searchCharacters + delta, matchString, matchLength)) 552 return index + delta; 551 553 return notFound; 552 554 }
Note:
See TracChangeset
for help on using the changeset viewer.