[webkit-changes] [WebKit/WebKit] d565c2: Fix off-by-one in WTF::findIgnoringASCIICaseWithou...
jjgriego
noreply at github.com
Mon May 15 16:20:26 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d565c2070f7adafe2511904b6a3a27f3d93396d2
https://github.com/WebKit/WebKit/commit/d565c2070f7adafe2511904b6a3a27f3d93396d2
Author: Joseph Griego <jgriego at igalia.com>
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
More information about the webkit-changes
mailing list