Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1c43f6f71325b0ebc9aae4b3370d9054ca164178
https://github.com/WebKit/WebKit/commit/1c43f6f71325b0ebc9aae4b3370d9054ca164178
Author: Xabier Rodriguez-Calvar <[email protected]>
Date: 2025-12-03 (Wed, 03 Dec 2025)
Changed paths:
M Source/WTF/wtf/text/CString.h
M Tools/TestWebKitAPI/Tests/WTF/CString.cpp
Log Message:
-----------
CString.isEmpty() for String.utf8() returns true when String has a single
character
https://bugs.webkit.org/show_bug.cgi?id=303428
Reviewed by Darin Adler.
isEmpty was accounting for a null terminator in the CStringBuffer length but it
is not like that.
Test: Tools/TestWebKitAPI/Tests/WTF/CString.cpp
* Source/WTF/wtf/text/CString.h:
* Tools/TestWebKitAPI/Tests/WTF/CString.cpp:
(TEST(WTF, CStringEmptyRegularConstructor)):
(TEST(WTF, CStringOnyByte)):
Canonical link: https://commits.webkit.org/303840@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications