Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c2659c292ffc8da008e82d1847770cbfbd219e19
https://github.com/WebKit/WebKit/commit/c2659c292ffc8da008e82d1847770cbfbd219e19
Author: Fady Farag <[email protected]>
Date: 2025-10-22 (Wed, 22 Oct 2025)
Changed paths:
M Source/WTF/wtf/StdLibExtras.h
M Source/WebCore/platform/network/curl/CurlMultipartHandle.cpp
Log Message:
-----------
Drop WebKit's fallback memmem() implementation and move sub-span search to
WTF::find()
https://bugs.webkit.org/show_bug.cgi?id=301151
rdar://163075589
Reviewed by Yusuke Suzuki.
Remove custom memmem() implementation that handled platforms without native
memmem()
support (e.g., Windows) by implementing a span-based search algorithm. On
platforms with
native memmem(), WTF::find() still delegates to the optimized system-provided
implementation.
This only affects Windows and other platforms lacking memmem().
* Source/WTF/wtf/StdLibExtras.h:
(WTF::find):
(WTF::contains):
(WTF::memmem): Deleted.
* Source/WebCore/platform/network/curl/CurlMultipartHandle.cpp:
(WebCore::CurlMultipartHandle::findBoundary):
(WebCore::CurlMultipartHandle::parseHeadersIfPossible):
Canonical link: https://commits.webkit.org/301949@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications