-
Notifications
You must be signed in to change notification settings - Fork 1.8k
CString.isEmpty() for String.utf8() returns true when String has a single character #54762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
EWS run on previous version of this PR (hash 7e99966) Details |
| ASSERT_STREQ(referenceString, stringWithLength.data()); | ||
| } | ||
|
|
||
| TEST(WTF, CStringOnyByte) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That a typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
| TEST(WTF, CStringOnyByte) | |
| TEST(WTF, CStringOneByte) |
|
EWS run on current version of this PR (hash 98fcf4d) Details |
…ngle 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
98fcf4d to
1c43f6f
Compare
|
Committed 303840@main (1c43f6f): https://commits.webkit.org/303840@main Reviewed commits have been landed. Closing PR #54762 and removing active labels. |
1c43f6f
98fcf4d
🛠 win🧪 wpe-wk2🧪 win-tests🧪 ios-wk2🧪 api-mac🧪 api-wpe🧪 ios-wk2-wpt🧪 api-mac-debug🧪 mac-wk1🧪 gtk-wk2🧪 api-gtk🧪 vision-wk2🧪 mac-intel-wk2🧪 jsc-armv7-tests