<?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>282406</bug_id>
          
          <creation_ts>2024-10-31 13:24:19 -0700</creation_ts>
          <short_desc>Enable -Wunsafe-buffer-usage in WebCore</short_desc>
          <delta_ts>2024-11-02 14:23:59 -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>WebKit Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>282497</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Geoffrey Garen">ggaren</reporter>
          <assigned_to name="Geoffrey Garen">ggaren</assigned_to>
          <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2071953</commentid>
    <comment_count>0</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2024-10-31 13:24:19 -0700</bug_when>
    <thetext>...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2071954</commentid>
    <comment_count>1</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2024-10-31 13:24:21 -0700</bug_when>
    <thetext>&lt;rdar://problem/137810622&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2071955</commentid>
    <comment_count>2</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2024-10-31 13:25:21 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/36014</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2072240</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-11-01 16:18:16 -0700</bug_when>
    <thetext>Committed 286031@main (67602317a964): &lt;https://commits.webkit.org/286031@main&gt;

Reviewed commits have been landed. Closing PR #36014 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2072278</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2024-11-01 19:12:48 -0700</bug_when>
    <thetext>Looks like this broke builds on safer C++ bots?

Source/WebCore/crypto/cocoa/CryptoAlgorithmEd25519Cocoa.cpp:54:28: error: the two-parameter std::span construction is unsafe as it can introduce mismatch between buffer size and the bound information [-Werror,-Wunsafe-buffer-usage-in-container]
   54 |     return Vector&lt;uint8_t&gt;(std::span { newSignature, ed25519SignatureSize });
      |                            ^
error: unsafe pointer operation [-Werror,-Wunsafe-buffer-usage]
note: pass -fsafe-buffer-usage-suggestions to receive code hardening suggestions
2 errors generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2072279</commentid>
    <comment_count>5</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2024-11-01 19:21:30 -0700</bug_when>
    <thetext>Oh, that must be the #if !HAVE(SWIFT_CPP_INTEROP) config. Fixing....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2072285</commentid>
    <comment_count>6</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2024-11-01 20:07:42 -0700</bug_when>
    <thetext>Trying out a fix in https://github.com/WebKit/WebKit/pull/36082</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2072343</commentid>
    <comment_count>7</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2024-11-02 14:23:58 -0700</bug_when>
    <thetext>Reopened Bugzilla.
REGRESSION(286031@main): Broke Internal iOS and visionOS Debug builds, tracking revert in https://bugs.webkit.org/show_bug.cgi?id=282497.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>