[webkit-changes] [WebKit/WebKit] 65fd9b: [JSC][Clang] DatePrototype.cpp(337, 29): error: 'sn...

Fujii Hironori noreply at github.com
Mon Mar 11 13:25:34 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 65fd9be34cc1fdedadf96affe6118d0b4d8de1c2
      https://github.com/WebKit/WebKit/commit/65fd9be34cc1fdedadf96affe6118d0b4d8de1c2
  Author: Fujii Hironori <Hironori.Fujii at sony.com>
  Date:   2024-03-11 (Mon, 11 Mar 2024)

  Changed paths:
    M Source/JavaScriptCore/runtime/DatePrototype.cpp

  Log Message:
  -----------
  [JSC][Clang] 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]
https://bugs.webkit.org/show_bug.cgi?id=270769

Reviewed by Don Olmstead.

Clang 18 reports a false warning:

> 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]

This problem is tracked by <https://github.com/llvm/llvm-project/issues/71320>.

* Source/JavaScriptCore/runtime/DatePrototype.cpp:
Ignore the warning for Clang.

Canonical link: https://commits.webkit.org/275926@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list