Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r231661 - Fix some -Wstring-op-truncation warnings
https://bugs.webkit.org/show_bug.cgi?id=185496 Reviewed by Alex Christensen. Source/ThirdParty: Disable this warning when building gtest. * gtest/CMakeLists.txt: Tools: We have an off-by-one in the use of strncpy. The strings would not be null-terminated if the input was too long. Ensure the buffers are zero-initialized so we don't need to manually set the last bucket to NUL. * TestWebKitAPI/Tests/WTF/AtomicString.cpp: (TestWebKitAPI::testAtomicStringNumber): * TestWebKitAPI/Tests/WTF/WTFString.cpp: (TestWebKitAPI::testStringNumberFixedPrecision): (TestWebKitAPI::testStringNumberFixedWidth): (TestWebKitAPI::testStringNumber):
- Loading branch information
1 parent
843dfaf
commit a6c10ee
Showing
5 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters