[Webkit-unassigned] [Bug 270769] New: [JSC] DatePrototype.cpp(337,29): error: 'snprintf' will always be truncated; specified size is 28, but format string expands to at least 29 [-Werror,-Wformat-truncation]
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Mar 10 13:44:25 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=270769
Bug ID: 270769
Summary: [JSC] DatePrototype.cpp(337,29): error: 'snprintf'
will always be truncated; specified size is 28, but
format string expands to at least 29
[-Werror,-Wformat-truncation]
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: Hironori.Fujii at sony.com
Clang 18.0.1 reports an warning for Windows port.
In file included from C:\w\WebKitBuild\Debug\JavaScriptCore\DerivedSources\unified-sources\UnifiedSource-f2e18ffc-8.cpp:1:
C:\PSDEV\wc\Source\JavaScriptCore\runtime/DatePrototype.cpp(337,29): error: 'snprintf' will always be truncated; specified size is 28, but format string expands to at least 29 [-Werror,-Wformat-truncation]
337 | charactersWritten = snprintf(buffer, sizeof(buffer), "%+07d-%02d-%02dT%02d:%02d:%02d.%03dZ", gregorianDateTime->year(), gregorianDateTime->month() + 1, gregorianDateTime->monthDay(), gregorianDateTime->hour(), gregorianDateTime->minute(), gregorianDateTime->second(), ms);
| ^
1 error generated.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240310/ddb30b50/attachment.htm>
More information about the webkit-unassigned
mailing list