<?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>286727</bug_id>
          
          <creation_ts>2025-01-29 21:00:08 -0800</creation_ts>
          <short_desc>Drop use of WTF_ALLOW_UNSAFE_BUFFER_USAGE in CSSCalcTree+Parser.cpp</short_desc>
          <delta_ts>2025-01-30 08:26:08 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>286743</dependson>
    
    <dependson>286745</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Dumez">cdumez</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>fujii</cc>
    
    <cc>koivisto</cc>
    
    <cc>rcaliman</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2090635</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2025-01-29 21:00:08 -0800</bug_when>
    <thetext>Drop use of WTF_ALLOW_UNSAFE_BUFFER_USAGE in CSSCalcTree+Parser.cpp.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2090636</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2025-01-29 21:04:23 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/39746</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2090649</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-01-29 22:19:32 -0800</bug_when>
    <thetext>Committed 289546@main (a4af661503b7): &lt;https://commits.webkit.org/289546@main&gt;

Reviewed commits have been landed. Closing PR #39746 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2090650</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-01-29 22:20:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/143867680&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2090654</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2025-01-29 23:15:58 -0800</bug_when>
    <thetext>289546@main added &quot;originalTokens[tokens.begin() - originalTokens.data() - 1]&quot;
This expression accesses &quot;originalTokens[-1]&quot;.

With MS STL + Debug build, the problem crashes.

&gt; Debug Assertion Failed!
&gt; 
&gt; Program: C:\webkit\wa\webkitbuild\debug\bin\WebCore.dll
&gt; File: C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.42.34433\include\span
&gt; Line: 454
&gt; 
&gt; Expression: span index out of range

Can I revert this change?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2090714</commentid>
    <comment_count>5</comment_count>
    <who name="Razvan Caliman">rcaliman</who>
    <bug_when>2025-01-30 06:08:31 -0800</bug_when>
    <thetext>Revert in https://bugs.webkit.org/show_bug.cgi?id=286743</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2090722</commentid>
    <comment_count>6</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2025-01-30 07:44:25 -0800</bug_when>
    <thetext>Reopened Bugzilla.
Unreviewed, revert 289546@main as it introduced crashes, tracking revert in https://bugs.webkit.org/show_bug.cgi?id=286745.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2090738</commentid>
    <comment_count>7</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2025-01-30 08:26:08 -0800</bug_when>
    <thetext>Follow-up fix in https://commits.webkit.org/289558@main.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>