Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d565c2070f7adafe2511904b6a3a27f3d93396d2
https://github.com/WebKit/WebKit/commit/d565c2070f7adafe2511904b6a3a27f3d93396d2
Author: Joseph Griego <[email protected]>
Date: 2023-05-15 (Mon, 15 May 2023)
Changed paths:
M Source/WTF/wtf/text/StringCommon.h
M Tools/TestWebKitAPI/Tests/WTF/StringCommon.cpp
Log Message:
-----------
Fix off-by-one in WTF::findIgnoringASCIICaseWithoutLength
https://bugs.webkit.org/show_bug.cgi?id=256606
Reviewed by Chris Dumez.
A needle identical to the haystack won't be found by this function because of
the length comparison used. Luckily, this function is unused except in testb3,
so nothing else really needs to be changed.
* Source/WTF/wtf/text/StringCommon.h:
(WTF::findIgnoringASCIICaseWithoutLength):
Canonical link: https://commits.webkit.org/264088@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes