-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] Avoid using snprintf in DatePrototype.cpp
https://bugs.webkit.org/show_bug.cgi?id=271490 rdar://125258271 Reviewed by Justin Michaud and Keith Miller. Clang is wrongly computing snprintf's potential size (llvm/llvm-project#71320), and generating wrong error. But given that we already have efficient WTF String's mechanism, we should just use it instead of snprintf, slow and buggy. This patch converts DatePrototype.cpp's snprintf usage to our own makeString. * Source/JavaScriptCore/runtime/DatePrototype.cpp: (JSC::JSC_DEFINE_HOST_FUNCTION): Canonical link: https://commits.webkit.org/276582@main
- Loading branch information
1 parent
6f4b9f9
commit 6d24e0d
Showing
1 changed file
with
18 additions
and
15 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