Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: ea4f9860bf2fcd7ca8d6c16eb534c71525527bc3 https://github.com/WebKit/WebKit/commit/ea4f9860bf2fcd7ca8d6c16eb534c71525527bc3 Author: Geoffrey Garen <gga...@apple.com> Date: 2025-01-26 (Sun, 26 Jan 2025)
Changed paths: M Source/JavaScriptCore/API/tests/FunctionOverridesTest.cpp M Source/WTF/wtf/StdLibExtras.h M Source/WTF/wtf/URL.cpp M Source/WTF/wtf/text/ASCIILiteral.h M Source/WTF/wtf/text/CString.h Log Message: ----------- Introduce SAFE_PRINTF https://bugs.webkit.org/show_bug.cgi?id=286503 rdar://143589997 Reviewed by Chris Dumez. printf() is not bounds safe because %s arguments might not be null terminated. This patch introduces SAFE_PRINTF, which checks its arguments for null termination at compile time. * Source/JavaScriptCore/API/tests/FunctionOverridesTest.cpp: (testFunctionOverrides): * Source/WTF/wtf/StdLibExtras.h: (WTF::safePrintfType): * Source/WTF/wtf/URL.cpp: (WTF::URL::print const): * Source/WTF/wtf/text/ASCIILiteral.h: (WTF::safePrintfType): * Source/WTF/wtf/text/CString.h: (WTF::safePrintfType): Canonical link: https://commits.webkit.org/289409@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes