Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 968ecacbe1cc4c3b5271fe16ae4ca8e11ff5c833
      
https://github.com/WebKit/WebKit/commit/968ecacbe1cc4c3b5271fe16ae4ca8e11ff5c833
  Author: Sosuke Suzuki <aosuk...@gmail.com>
  Date:   2024-11-09 (Sat, 09 Nov 2024)

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

  Log Message:
  -----------
  [JSC] Fix Linux build error after 286359@main
https://bugs.webkit.org/show_bug.cgi?id=282873

Reviewed by Yusuke Suzuki.

Building the latest WebKit with Linux clang++ results in the following error,
likely due to 286359@main:

    /WebKit/WebKit/Source/JavaScriptCore/runtime/Options.cpp:422:62: error: 
'name' is an unsafe pointer used for buffer access 
[-Werror,-Wunsafe-buffer-usage]
      422 | bool Options::overrideAliasedOptionWithHeuristic(const char* name)
          |                                                  ~~~~~~~~~~~~^~~~
    
/home/sosukesuzuki/ghq/github.com/WebKit/WebKit/Source/JavaScriptCore/runtime/Options.cpp:428:43:
 note: used in buffer access here
      428 |     auto aliasedOption = makeString(span(&name[4]), '=', 
span(stringValue));
          |                                           ^~~~
    1 error generated.

This patch fixes this error.

    * Source/JavaScriptCore/runtime/Options.cpp:

Canonical link: https://commits.webkit.org/286382@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

Reply via email to