Skip to content

Conversation

@calvaris
Copy link
Contributor

@calvaris calvaris commented Dec 3, 2025

@calvaris calvaris self-assigned this Dec 3, 2025
@calvaris calvaris added the New Bugs Unclassified bugs are placed in this component until the correct component can be determined. label Dec 3, 2025
ASSERT_STREQ(referenceString, stringWithLength.data());
}

TEST(WTF, CStringOnyByte)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That a typo?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

Suggested change
TEST(WTF, CStringOnyByte)
TEST(WTF, CStringOneByte)

@calvaris calvaris added the merge-queue Applied to send a pull request to merge-queue label Dec 3, 2025
…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
@webkit-commit-queue
Copy link
Collaborator

Committed 303840@main (1c43f6f): https://commits.webkit.org/303840@main

Reviewed commits have been landed. Closing PR #54762 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 1c43f6f into WebKit:main Dec 3, 2025
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Dec 3, 2025
@calvaris calvaris deleted the eng/303428 branch December 4, 2025 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Bugs Unclassified bugs are placed in this component until the correct component can be determined.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants