-
barraclough@apple.com authored
Reviewed by Sam Weinig. Bug 44080 introuduced a couple of cases in which array bounds could be overrun. One of these was fixed in r65493, this patch fixes the other and address the concerns voiced in comment #6 by restructuring the loops to remove the code dupliction without introducing an additional if check. * wtf/text/StringImpl.cpp: (WTF::StringImpl::find): (WTF::StringImpl::findIgnoringCase): (WTF::StringImpl::reverseFind): (WTF::StringImpl::reverseFindIgnoringCase): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65571 268f45cc-cd09-0410-ab3c-d52691b4dbfc
9fc87e1f