<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>299357</bug_id>
          
          <creation_ts>2025-09-22 23:01:18 -0700</creation_ts>
          <short_desc>[Clang][GTK][WPE] Fix unsafe-buffer-usage-in-libc-call warnings</short_desc>
          <delta_ts>2025-09-23 02:29:52 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>DoNotImportToRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2145147</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2025-09-22 23:01:18 -0700</bug_when>
    <thetext>FAILED: Source/WTF/wtf/CMakeFiles/WTF.dir/linux/CurrentProcessMemoryStatus.cpp.o 
/usr/bin/clang++ -DBUILDING_GTK__=1 -DBUILDING_WEBKIT=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_WTF -DBWRAP_EXECUTABLE=\&quot;/usr/bin/bwrap\&quot; -DDBUS_PROXY_EXECUTABLE=\&quot;/usr/bin/xdg-dbus-proxy\&quot; -DGETTEXT_PACKAGE=\&quot;WebKitGTK-6.0\&quot; -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DPAS_BMALLOC=1 -DSTATICALLY_LINKED_WITH_bmalloc -D_GLIBCXX_ASSERTIONS=1 -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/WTF/DerivedSources -I/home/fujii/webkit/wa/Source/WTF -I/home/fujii/webkit/wa/Source/WTF/wtf -I/home/fujii/webkit/wa/Source/WTF/wtf/dtoa -I/home/fujii/webkit/wa/Source/WTF/wtf/fast_float -I/home/fujii/webkit/wa/Source/WTF/wtf/persistence -I/home/fujii/webkit/wa/Source/WTF/wtf/simdutf -I/home/fujii/webkit/wa/Source/WTF/wtf/text -I/home/fujii/webkit/wa/Source/WTF/wtf/text/icu -I/home/fujii/webkit/wa/Source/WTF/wtf/threads -I/home/fujii/webkit/wa/Source/WTF/wtf/unicode -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/bmalloc/Headers -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /home/fujii/webkit/webkit-jhbuild/install/include/sysprof-6 -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Werror=undefined-internal -Werror=undefined-inline -pipe -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-parentheses-equality -Qunused-arguments -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fasynchronous-unwind-tables -fdebug-types-section -fno-omit-frame-pointer -fno-strict-aliasing -fno-exceptions -fno-rtti -fcoroutines -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++23 -fPIC -fvisibility=hidden -Wunsafe-buffer-usage -Wunsafe-buffer-usage-in-libc-call -fsafe-buffer-usage-suggestions -Werror -pthread -MD -MT Source/WTF/wtf/CMakeFiles/WTF.dir/linux/CurrentProcessMemoryStatus.cpp.o -MF Source/WTF/wtf/CMakeFiles/WTF.dir/linux/CurrentProcessMemoryStatus.cpp.o.d -o Source/WTF/wtf/CMakeFiles/WTF.dir/linux/CurrentProcessMemoryStatus.cpp.o -c /home/fujii/webkit/wa/Source/WTF/wtf/linux/CurrentProcessMemoryStatus.cpp
/home/fujii/webkit/wa/Source/WTF/wtf/linux/CurrentProcessMemoryStatus.cpp:43:18: error: function &apos;fgets&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
   43 |     char* line = fgets(buffer, 128, file);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/linux/CurrentProcessMemoryStatus.cpp:50:35: error: function &apos;strtoull&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
   50 |     unsigned long long intValue = strtoull(line, &amp;end, 10);
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/linux/CurrentProcessMemoryStatus.cpp:52:16: error: function &apos;strtoull&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
   52 |     intValue = strtoull(end, &amp;end, 10);
      |                ^~~~~~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/linux/CurrentProcessMemoryStatus.cpp:54:16: error: function &apos;strtoull&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
   54 |     intValue = strtoull(end, &amp;end, 10);
      |                ^~~~~~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/linux/CurrentProcessMemoryStatus.cpp:56:16: error: function &apos;strtoull&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
   56 |     intValue = strtoull(end, &amp;end, 10);
      |                ^~~~~~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/linux/CurrentProcessMemoryStatus.cpp:58:16: error: function &apos;strtoull&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
   58 |     intValue = strtoull(end, &amp;end, 10);
      |                ^~~~~~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/linux/CurrentProcessMemoryStatus.cpp:60:16: error: function &apos;strtoull&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
   60 |     intValue = strtoull(end, &amp;end, 10);
      |                ^~~~~~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/linux/CurrentProcessMemoryStatus.cpp:62:16: error: function &apos;strtoull&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
   62 |     intValue = strtoull(end, &amp;end, 10);
      |                ^~~~~~~~~~~~~~~~~~~~~~~
8 errors generated.
[13/2319] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/glib/ChassisType.cpp.o
FAILED: Source/WTF/wtf/CMakeFiles/WTF.dir/glib/ChassisType.cpp.o 
/usr/bin/clang++ -DBUILDING_GTK__=1 -DBUILDING_WEBKIT=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_WTF -DBWRAP_EXECUTABLE=\&quot;/usr/bin/bwrap\&quot; -DDBUS_PROXY_EXECUTABLE=\&quot;/usr/bin/xdg-dbus-proxy\&quot; -DGETTEXT_PACKAGE=\&quot;WebKitGTK-6.0\&quot; -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DPAS_BMALLOC=1 -DSTATICALLY_LINKED_WITH_bmalloc -D_GLIBCXX_ASSERTIONS=1 -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/WTF/DerivedSources -I/home/fujii/webkit/wa/Source/WTF -I/home/fujii/webkit/wa/Source/WTF/wtf -I/home/fujii/webkit/wa/Source/WTF/wtf/dtoa -I/home/fujii/webkit/wa/Source/WTF/wtf/fast_float -I/home/fujii/webkit/wa/Source/WTF/wtf/persistence -I/home/fujii/webkit/wa/Source/WTF/wtf/simdutf -I/home/fujii/webkit/wa/Source/WTF/wtf/text -I/home/fujii/webkit/wa/Source/WTF/wtf/text/icu -I/home/fujii/webkit/wa/Source/WTF/wtf/threads -I/home/fujii/webkit/wa/Source/WTF/wtf/unicode -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/bmalloc/Headers -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /home/fujii/webkit/webkit-jhbuild/install/include/sysprof-6 -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Werror=undefined-internal -Werror=undefined-inline -pipe -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-parentheses-equality -Qunused-arguments -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fasynchronous-unwind-tables -fdebug-types-section -fno-omit-frame-pointer -fno-strict-aliasing -fno-exceptions -fno-rtti -fcoroutines -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++23 -fPIC -fvisibility=hidden -Wunsafe-buffer-usage -Wunsafe-buffer-usage-in-libc-call -fsafe-buffer-usage-suggestions -Werror -pthread -MD -MT Source/WTF/wtf/CMakeFiles/WTF.dir/glib/ChassisType.cpp.o -MF Source/WTF/wtf/CMakeFiles/WTF.dir/glib/ChassisType.cpp.o.d -o Source/WTF/wtf/CMakeFiles/WTF.dir/glib/ChassisType.cpp.o -c /home/fujii/webkit/wa/Source/WTF/wtf/glib/ChassisType.cpp
/home/fujii/webkit/wa/Source/WTF/wtf/glib/ChassisType.cpp:71:20: error: function &apos;strtol&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
   71 |         int type = strtol(buffer.get(), nullptr, 10);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/glib/ChassisType.cpp:106:20: error: function &apos;strtol&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
  106 |         int type = strtol(buffer.get(), nullptr, 10);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
[14/2319] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/linux/MemoryFootprintLinux.cpp.o
FAILED: Source/WTF/wtf/CMakeFiles/WTF.dir/linux/MemoryFootprintLinux.cpp.o 
/usr/bin/clang++ -DBUILDING_GTK__=1 -DBUILDING_WEBKIT=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_WTF -DBWRAP_EXECUTABLE=\&quot;/usr/bin/bwrap\&quot; -DDBUS_PROXY_EXECUTABLE=\&quot;/usr/bin/xdg-dbus-proxy\&quot; -DGETTEXT_PACKAGE=\&quot;WebKitGTK-6.0\&quot; -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DPAS_BMALLOC=1 -DSTATICALLY_LINKED_WITH_bmalloc -D_GLIBCXX_ASSERTIONS=1 -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/WTF/DerivedSources -I/home/fujii/webkit/wa/Source/WTF -I/home/fujii/webkit/wa/Source/WTF/wtf -I/home/fujii/webkit/wa/Source/WTF/wtf/dtoa -I/home/fujii/webkit/wa/Source/WTF/wtf/fast_float -I/home/fujii/webkit/wa/Source/WTF/wtf/persistence -I/home/fujii/webkit/wa/Source/WTF/wtf/simdutf -I/home/fujii/webkit/wa/Source/WTF/wtf/text -I/home/fujii/webkit/wa/Source/WTF/wtf/text/icu -I/home/fujii/webkit/wa/Source/WTF/wtf/threads -I/home/fujii/webkit/wa/Source/WTF/wtf/unicode -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/bmalloc/Headers -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /home/fujii/webkit/webkit-jhbuild/install/include/sysprof-6 -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Werror=undefined-internal -Werror=undefined-inline -pipe -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-parentheses-equality -Qunused-arguments -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fasynchronous-unwind-tables -fdebug-types-section -fno-omit-frame-pointer -fno-strict-aliasing -fno-exceptions -fno-rtti -fcoroutines -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++23 -fPIC -fvisibility=hidden -Wunsafe-buffer-usage -Wunsafe-buffer-usage-in-libc-call -fsafe-buffer-usage-suggestions -Werror -pthread -MD -MT Source/WTF/wtf/CMakeFiles/WTF.dir/linux/MemoryFootprintLinux.cpp.o -MF Source/WTF/wtf/CMakeFiles/WTF.dir/linux/MemoryFootprintLinux.cpp.o.d -o Source/WTF/wtf/CMakeFiles/WTF.dir/linux/MemoryFootprintLinux.cpp.o -c /home/fujii/webkit/wa/Source/WTF/wtf/linux/MemoryFootprintLinux.cpp
/home/fujii/webkit/wa/Source/WTF/wtf/linux/MemoryFootprintLinux.cpp:66:32: error: function &apos;sscanf&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
   66 |             int scannedCount = sscanf(buffer, &quot;%lx-%lx %4s %lx %31s %lu %6s&quot;, &amp;start, &amp;end, perms, &amp;offset, dev, &amp;inode, path);
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/linux/MemoryFootprintLinux.cpp:82:13: error: function &apos;sscanf&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
   82 |         if (sscanf(buffer, &quot;Private_Dirty: %lu&quot;, &amp;privateDirtyInKB) == 1)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
[15/2319] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/posix/FileSystemPOSIX.cpp.o
FAILED: Source/WTF/wtf/CMakeFiles/WTF.dir/posix/FileSystemPOSIX.cpp.o 
/usr/bin/clang++ -DBUILDING_GTK__=1 -DBUILDING_WEBKIT=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_WTF -DBWRAP_EXECUTABLE=\&quot;/usr/bin/bwrap\&quot; -DDBUS_PROXY_EXECUTABLE=\&quot;/usr/bin/xdg-dbus-proxy\&quot; -DGETTEXT_PACKAGE=\&quot;WebKitGTK-6.0\&quot; -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DPAS_BMALLOC=1 -DSTATICALLY_LINKED_WITH_bmalloc -D_GLIBCXX_ASSERTIONS=1 -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/WTF/DerivedSources -I/home/fujii/webkit/wa/Source/WTF -I/home/fujii/webkit/wa/Source/WTF/wtf -I/home/fujii/webkit/wa/Source/WTF/wtf/dtoa -I/home/fujii/webkit/wa/Source/WTF/wtf/fast_float -I/home/fujii/webkit/wa/Source/WTF/wtf/persistence -I/home/fujii/webkit/wa/Source/WTF/wtf/simdutf -I/home/fujii/webkit/wa/Source/WTF/wtf/text -I/home/fujii/webkit/wa/Source/WTF/wtf/text/icu -I/home/fujii/webkit/wa/Source/WTF/wtf/threads -I/home/fujii/webkit/wa/Source/WTF/wtf/unicode -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/bmalloc/Headers -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /home/fujii/webkit/webkit-jhbuild/install/include/sysprof-6 -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Werror=undefined-internal -Werror=undefined-inline -pipe -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-parentheses-equality -Qunused-arguments -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fasynchronous-unwind-tables -fdebug-types-section -fno-omit-frame-pointer -fno-strict-aliasing -fno-exceptions -fno-rtti -fcoroutines -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++23 -fPIC -fvisibility=hidden -Wunsafe-buffer-usage -Wunsafe-buffer-usage-in-libc-call -fsafe-buffer-usage-suggestions -Werror -pthread -MD -MT Source/WTF/wtf/CMakeFiles/WTF.dir/posix/FileSystemPOSIX.cpp.o -MF Source/WTF/wtf/CMakeFiles/WTF.dir/posix/FileSystemPOSIX.cpp.o.d -o Source/WTF/wtf/CMakeFiles/WTF.dir/posix/FileSystemPOSIX.cpp.o -c /home/fujii/webkit/wa/Source/WTF/wtf/posix/FileSystemPOSIX.cpp
/home/fujii/webkit/wa/Source/WTF/wtf/posix/FileSystemPOSIX.cpp:177:21: error: function &apos;strlen&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
  177 |     size_t length = strlen(directory) + 1 + prefixUTF8.length() + 1 + 6 + 1;
      |                     ^~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/posix/FileSystemPOSIX.cpp:179:5: error: function &apos;snprintf&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
  179 |     snprintf(buffer.mutableSpan().data(), length, &quot;%s/%s-XXXXXX&quot;, directory, prefixUTF8.data());
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/posix/FileSystemPOSIX.cpp:179:14: note:  buffer pointer and size may not match
  179 |     snprintf(buffer.mutableSpan().data(), length, &quot;%s/%s-XXXXXX&quot;, directory, prefixUTF8.data());
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
[16/2319] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/glib/SocketConnection.cpp.o
FAILED: Source/WTF/wtf/CMakeFiles/WTF.dir/glib/SocketConnection.cpp.o 
/usr/bin/clang++ -DBUILDING_GTK__=1 -DBUILDING_WEBKIT=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_WTF -DBWRAP_EXECUTABLE=\&quot;/usr/bin/bwrap\&quot; -DDBUS_PROXY_EXECUTABLE=\&quot;/usr/bin/xdg-dbus-proxy\&quot; -DGETTEXT_PACKAGE=\&quot;WebKitGTK-6.0\&quot; -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DPAS_BMALLOC=1 -DSTATICALLY_LINKED_WITH_bmalloc -D_GLIBCXX_ASSERTIONS=1 -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/WTF/DerivedSources -I/home/fujii/webkit/wa/Source/WTF -I/home/fujii/webkit/wa/Source/WTF/wtf -I/home/fujii/webkit/wa/Source/WTF/wtf/dtoa -I/home/fujii/webkit/wa/Source/WTF/wtf/fast_float -I/home/fujii/webkit/wa/Source/WTF/wtf/persistence -I/home/fujii/webkit/wa/Source/WTF/wtf/simdutf -I/home/fujii/webkit/wa/Source/WTF/wtf/text -I/home/fujii/webkit/wa/Source/WTF/wtf/text/icu -I/home/fujii/webkit/wa/Source/WTF/wtf/threads -I/home/fujii/webkit/wa/Source/WTF/wtf/unicode -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/bmalloc/Headers -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /home/fujii/webkit/webkit-jhbuild/install/include/sysprof-6 -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Werror=undefined-internal -Werror=undefined-inline -pipe -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-parentheses-equality -Qunused-arguments -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fasynchronous-unwind-tables -fdebug-types-section -fno-omit-frame-pointer -fno-strict-aliasing -fno-exceptions -fno-rtti -fcoroutines -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++23 -fPIC -fvisibility=hidden -Wunsafe-buffer-usage -Wunsafe-buffer-usage-in-libc-call -fsafe-buffer-usage-suggestions -Werror -pthread -MD -MT Source/WTF/wtf/CMakeFiles/WTF.dir/glib/SocketConnection.cpp.o -MF Source/WTF/wtf/CMakeFiles/WTF.dir/glib/SocketConnection.cpp.o.d -o Source/WTF/wtf/CMakeFiles/WTF.dir/glib/SocketConnection.cpp.o -c /home/fujii/webkit/wa/Source/WTF/wtf/glib/SocketConnection.cpp
/home/fujii/webkit/wa/Source/WTF/wtf/glib/SocketConnection.cpp:121:5: error: function &apos;memcpy&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
  121 |     memcpy(&amp;bodySizeHeader, messageData, sizeof(uint32_t));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/glib/SocketConnection.cpp:126:5: error: function &apos;memcpy&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
  126 |     memcpy(&amp;flags, messageData, sizeof(MessageFlags));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/glib/SocketConnection.cpp:134:41: error: function &apos;strlen&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
  134 |     Checked&lt;size_t&gt; messageNameLength = strlen(messageData);
      |                                         ^~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/glib/SocketConnection.cpp:173:37: error: function &apos;strlen&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
  173 |     CheckedSize messageNameLength = strlen(messageName);
      |                                     ^~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/glib/SocketConnection.cpp:191:5: error: function &apos;memcpy&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
  191 |     memcpy(messageData, &amp;bodySizeHeader, sizeof(uint32_t));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/glib/SocketConnection.cpp:197:5: error: function &apos;memcpy&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
  197 |     memcpy(messageData, &amp;flags, sizeof(MessageFlags));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/glib/SocketConnection.cpp:199:5: error: function &apos;memcpy&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
  199 |     memcpy(messageData, messageName, messageNameLength);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/Source/WTF/wtf/glib/SocketConnection.cpp:202:9: error: function &apos;memcpy&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
  202 |         memcpy(messageData, g_variant_get_data(parameters), parametersSize);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 errors generated.
ninja: build stopped: cannot make progress due to previous errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2145159</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2025-09-23 00:15:25 -0700</bug_when>
    <thetext>FAILED: Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-ee8a7a7a-4.cpp.o 
/usr/bin/clang++ -DBUILDING_GTK__=1 -DBUILDING_JavaScriptCore -DBUILDING_WEBKIT=1 -DBUILDING_WITH_CMAKE=1 -DBWRAP_EXECUTABLE=\&quot;/usr/bin/bwrap\&quot; -DDBUS_PROXY_EXECUTABLE=\&quot;/usr/bin/xdg-dbus-proxy\&quot; -DGETTEXT_PACKAGE=\&quot;WebKitGTK-6.0\&quot; -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DJavaScriptCore_EXPORTS -DPAS_BMALLOC=1 -DSTATICALLY_LINKED_WITH_WTF -DSTATICALLY_LINKED_WITH_bmalloc -D_GLIBCXX_ASSERTIONS=1 -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/Headers -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/PrivateHeaders -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/PrivateHeaders/JavaScriptCore -I/home/fujii/webkit/wa/Source/JavaScriptCore -I/home/fujii/webkit/wa/Source/JavaScriptCore/API -I/home/fujii/webkit/wa/Source/JavaScriptCore/assembler -I/home/fujii/webkit/wa/Source/JavaScriptCore/b3 -I/home/fujii/webkit/wa/Source/JavaScriptCore/b3/air -I/home/fujii/webkit/wa/Source/JavaScriptCore/bindings -I/home/fujii/webkit/wa/Source/JavaScriptCore/builtins -I/home/fujii/webkit/wa/Source/JavaScriptCore/bytecode -I/home/fujii/webkit/wa/Source/JavaScriptCore/bytecompiler -I/home/fujii/webkit/wa/Source/JavaScriptCore/dfg -I/home/fujii/webkit/wa/Source/JavaScriptCore/disassembler -I/home/fujii/webkit/wa/Source/JavaScriptCore/disassembler/ARM64 -I/home/fujii/webkit/wa/Source/JavaScriptCore/disassembler/zydis -I/home/fujii/webkit/wa/Source/JavaScriptCore/domjit -I/home/fujii/webkit/wa/Source/JavaScriptCore/ftl -I/home/fujii/webkit/wa/Source/JavaScriptCore/fuzzilli -I/home/fujii/webkit/wa/Source/JavaScriptCore/heap -I/home/fujii/webkit/wa/Source/JavaScriptCore/debugger -I/home/fujii/webkit/wa/Source/JavaScriptCore/inspector -I/home/fujii/webkit/wa/Source/JavaScriptCore/inspector/agents -I/home/fujii/webkit/wa/Source/JavaScriptCore/inspector/augmentable -I/home/fujii/webkit/wa/Source/JavaScriptCore/inspector/remote -I/home/fujii/webkit/wa/Source/JavaScriptCore/interpreter -I/home/fujii/webkit/wa/Source/JavaScriptCore/jit -I/home/fujii/webkit/wa/Source/JavaScriptCore/llint -I/home/fujii/webkit/wa/Source/JavaScriptCore/parser -I/home/fujii/webkit/wa/Source/JavaScriptCore/profiler -I/home/fujii/webkit/wa/Source/JavaScriptCore/runtime -I/home/fujii/webkit/wa/Source/JavaScriptCore/tools -I/home/fujii/webkit/wa/Source/JavaScriptCore/wasm -I/home/fujii/webkit/wa/Source/JavaScriptCore/wasm/js -I/home/fujii/webkit/wa/Source/JavaScriptCore/yarr -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/DerivedSources -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/DerivedSources/inspector -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/DerivedSources/runtime -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/DerivedSources/yarr -I/home/fujii/webkit/wa/Source/JavaScriptCore/API/glib -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCoreGLib/DerivedSources -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCoreGLib/DerivedSources/jsc -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCoreGLib/Headers -I/home/fujii/webkit/wa/Source/JavaScriptCore/inspector/remote/glib -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/WTF/Headers -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/bmalloc/Headers -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /home/fujii/webkit/webkit-jhbuild/install/include/sysprof-6 -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Werror=undefined-internal -Werror=undefined-inline -pipe -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-parentheses-equality -Qunused-arguments -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fasynchronous-unwind-tables -fdebug-types-section -fno-omit-frame-pointer -fno-strict-aliasing -fno-exceptions -fno-rtti -fcoroutines -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++23 -fPIC -fvisibility=hidden -Wunsafe-buffer-usage -Wunsafe-buffer-usage-in-libc-call -fsafe-buffer-usage-suggestions -ffp-contract=off -fno-slp-vectorize -Werror -pthread -MD -MT Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-ee8a7a7a-4.cpp.o -MF Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-ee8a7a7a-4.cpp.o.d -o Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-ee8a7a7a-4.cpp.o -c /home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-ee8a7a7a-4.cpp
In file included from /home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-ee8a7a7a-4.cpp:8:
In file included from /home/fujii/webkit/wa/Source/JavaScriptCore/heap/IncrementalSweeper.cpp:32:
In file included from /home/fujii/webkit/wa/WebKitBuild/GTK/Release/WTF/Headers/wtf/SystemTracing.h:196:
/home/fujii/webkit/wa/WebKitBuild/GTK/Release/WTF/Headers/wtf/glib/SysprofAnnotator.h:73:9: error: function &apos;vsnprintf&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
   73 |         vsnprintf(buffer.mutableSpan().data(), buffer.size(), description, args);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fujii/webkit/wa/WebKitBuild/GTK/Release/WTF/Headers/wtf/glib/SysprofAnnotator.h:73:9: note: &apos;va_list&apos; is unsafe
   73 |         vsnprintf(buffer.mutableSpan().data(), buffer.size(), description, args);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2145160</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2025-09-23 00:16:53 -0700</bug_when>
    <thetext>FAILED: Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-84c9f43f-6.cpp.o 
/usr/bin/clang++ -DBUILDING_GTK__=1 -DBUILDING_JavaScriptCore -DBUILDING_WEBKIT=1 -DBUILDING_WITH_CMAKE=1 -DBWRAP_EXECUTABLE=\&quot;/usr/bin/bwrap\&quot; -DDBUS_PROXY_EXECUTABLE=\&quot;/usr/bin/xdg-dbus-proxy\&quot; -DGETTEXT_PACKAGE=\&quot;WebKitGTK-6.0\&quot; -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DJavaScriptCore_EXPORTS -DPAS_BMALLOC=1 -DSTATICALLY_LINKED_WITH_WTF -DSTATICALLY_LINKED_WITH_bmalloc -D_GLIBCXX_ASSERTIONS=1 -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/Headers -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/PrivateHeaders -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/PrivateHeaders/JavaScriptCore -I/home/fujii/webkit/wa/Source/JavaScriptCore -I/home/fujii/webkit/wa/Source/JavaScriptCore/API -I/home/fujii/webkit/wa/Source/JavaScriptCore/assembler -I/home/fujii/webkit/wa/Source/JavaScriptCore/b3 -I/home/fujii/webkit/wa/Source/JavaScriptCore/b3/air -I/home/fujii/webkit/wa/Source/JavaScriptCore/bindings -I/home/fujii/webkit/wa/Source/JavaScriptCore/builtins -I/home/fujii/webkit/wa/Source/JavaScriptCore/bytecode -I/home/fujii/webkit/wa/Source/JavaScriptCore/bytecompiler -I/home/fujii/webkit/wa/Source/JavaScriptCore/dfg -I/home/fujii/webkit/wa/Source/JavaScriptCore/disassembler -I/home/fujii/webkit/wa/Source/JavaScriptCore/disassembler/ARM64 -I/home/fujii/webkit/wa/Source/JavaScriptCore/disassembler/zydis -I/home/fujii/webkit/wa/Source/JavaScriptCore/domjit -I/home/fujii/webkit/wa/Source/JavaScriptCore/ftl -I/home/fujii/webkit/wa/Source/JavaScriptCore/fuzzilli -I/home/fujii/webkit/wa/Source/JavaScriptCore/heap -I/home/fujii/webkit/wa/Source/JavaScriptCore/debugger -I/home/fujii/webkit/wa/Source/JavaScriptCore/inspector -I/home/fujii/webkit/wa/Source/JavaScriptCore/inspector/agents -I/home/fujii/webkit/wa/Source/JavaScriptCore/inspector/augmentable -I/home/fujii/webkit/wa/Source/JavaScriptCore/inspector/remote -I/home/fujii/webkit/wa/Source/JavaScriptCore/interpreter -I/home/fujii/webkit/wa/Source/JavaScriptCore/jit -I/home/fujii/webkit/wa/Source/JavaScriptCore/llint -I/home/fujii/webkit/wa/Source/JavaScriptCore/parser -I/home/fujii/webkit/wa/Source/JavaScriptCore/profiler -I/home/fujii/webkit/wa/Source/JavaScriptCore/runtime -I/home/fujii/webkit/wa/Source/JavaScriptCore/tools -I/home/fujii/webkit/wa/Source/JavaScriptCore/wasm -I/home/fujii/webkit/wa/Source/JavaScriptCore/wasm/js -I/home/fujii/webkit/wa/Source/JavaScriptCore/yarr -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/DerivedSources -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/DerivedSources/inspector -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/DerivedSources/runtime -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/DerivedSources/yarr -I/home/fujii/webkit/wa/Source/JavaScriptCore/API/glib -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCoreGLib/DerivedSources -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCoreGLib/DerivedSources/jsc -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCoreGLib/Headers -I/home/fujii/webkit/wa/Source/JavaScriptCore/inspector/remote/glib -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/WTF/Headers -I/home/fujii/webkit/wa/WebKitBuild/GTK/Release/bmalloc/Headers -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /home/fujii/webkit/webkit-jhbuild/install/include/sysprof-6 -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Werror=undefined-internal -Werror=undefined-inline -pipe -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-parentheses-equality -Qunused-arguments -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fasynchronous-unwind-tables -fdebug-types-section -fno-omit-frame-pointer -fno-strict-aliasing -fno-exceptions -fno-rtti -fcoroutines -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++23 -fPIC -fvisibility=hidden -Wunsafe-buffer-usage -Wunsafe-buffer-usage-in-libc-call -fsafe-buffer-usage-suggestions -ffp-contract=off -fno-slp-vectorize -Werror -pthread -MD -MT Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-84c9f43f-6.cpp.o -MF Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-84c9f43f-6.cpp.o.d -o Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-84c9f43f-6.cpp.o -c /home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-84c9f43f-6.cpp
In file included from /home/fujii/webkit/wa/WebKitBuild/GTK/Release/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-84c9f43f-6.cpp:8:
/home/fujii/webkit/wa/Source/JavaScriptCore/inspector/remote/glib/RemoteInspectorServer.cpp:243:9: error: function &apos;strcmp&apos; is unsafe [-Werror,-Wunsafe-buffer-usage-in-libc-call]
  243 |     if (strcmp(clientBackendCommandsHash, backendCommandsHash().data())) {
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2145176</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2025-09-23 02:29:52 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/51186</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>