<?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>249061</bug_id>
          
          <creation_ts>2022-12-09 18:36:02 -0800</creation_ts>
          <short_desc>Fix use-after-move in WebCore::StyleGradientImage constructor</short_desc>
          <delta_ts>2022-12-11 09:01:39 -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>SVG</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>246927</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="David Kilzer (:ddkilzer)">ddkilzer</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1918120</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2022-12-09 18:36:02 -0800</bug_when>
    <thetext>Fix use-after-free in WebCore::StyleGradientImage() constructor in Source/WebCore/rendering/style/StyleGradientImage.cpp.

```
StyleGradientImage::StyleGradientImage(Data&amp;&amp; data, CSSGradientColorInterpolationMethod colorInterpolationMethod, Vector
&lt;StyleGradientImageStop&gt;&amp;&amp; stops)
    : StyleGeneratedImage { Type::GradientImage, StyleGradientImage::isFixedSize }
    , m_data { WTFMove(data) }
    , m_colorInterpolationMethod { colorInterpolationMethod }
    , m_stops { WTFMove(stops) }
    , m_knownCacheableBarringFilter { stopsAreCacheable(stops) }  // FIXME: Use-after-move of `stops`.
{
}
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1918121</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-12-09 18:36:24 -0800</bug_when>
    <thetext>&lt;rdar://problem/103202572&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1918122</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2022-12-09 18:45:45 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/7427</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1918213</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-12-10 13:41:22 -0800</bug_when>
    <thetext>Committed 257686@main (40f4e5e1face): &lt;https://commits.webkit.org/257686@main&gt;

Reviewed commits have been landed. Closing PR #7427 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1918283</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2022-12-11 09:01:39 -0800</bug_when>
    <thetext>This was a use-after-move, not a use-after-free.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>