<?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>271268</bug_id>
          
          <creation_ts>2024-03-19 13:55:12 -0700</creation_ts>
          <short_desc>[f0e8689f5d5a20e4] ASAN_TRAP | WTF::Vector::reserveCapacity; WTF::Vector::expandCapacity; WTF::Vector::appendSlowCase</short_desc>
          <delta_ts>2024-12-05 13:02:18 -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>WebKit2</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abigail F">abifox</reporter>
          <assigned_to name="Abigail F">abifox</assigned_to>
          <cc>kkinnunen</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2022249</commentid>
    <comment_count>0</comment_count>
    <who name="Abigail F">abifox</who>
    <bug_when>2024-03-19 13:55:12 -0700</bug_when>
    <thetext>Testcase:
=======

&lt;style&gt;
.class2,aside { horizontal;float: right;-webkit-flow-from: }
*:last-of-type { show;-webkit-columns: 1px auto;grid: single;-webkit-min-logical-height: 1em;margin-bottom: 8192px;row-gap: steps(5,jump-start),step-end;border-bottom-style: ridge;-webkit-text-combine: auto;column-gap: 1px;-webkit-text-combine: auto;height: 0%;font-variant: fit-content(512vmax);border-left-style: solid;-webkit-box-decoration-break: }
#x42,.class2 { auto;-webkit-box-shadow: 232em 16px 16384px }
&lt;/style&gt;
&lt;/dt&gt;
&lt;code title=&quot;AAAAAAAAAAAAAAAAAAAA&quot;&gt;
&lt;/audio&gt;
&lt;p style=&quot;animation-fill-mode: bottom;-webkit-column-span: all;width: onblur=&quot;f4()&quot;&gt;
&lt;fieldset form=&quot;foo&quot;&gt;
&lt;label class=&quot;class2&quot;&gt;
&lt;/label&gt;
&lt;button formtarget=&quot;x66&quot;&gt;
&lt;/select&gt;
&lt;/fieldset&gt;
&lt;/h3&gt;
&lt;audio controls=&quot;&quot; muted=&quot;&quot;&gt;


Versions
=======

First found on WebKit-54c72ce.
Discovered by fuzzer WebKit-WebKitTestRunner-ASan-FreeDom (revision 1).


Testcase
=======


reduced-1-170680346905.html


Crash Report
==========

com.apple.WebKit.WebContent.Development-2024-02-01-084211.ips


Stack Trace
=========

frame #0: WebCore`bool WTF::Vector&lt;WebCore::LayerFragment, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;::reserveCapacity&lt;(WTF::FailureAction)0&gt;(unsigned long)+0x3a4
frame #1: WebCore`WebCore::LayerFragment* WTF::Vector&lt;WebCore::LayerFragment, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;::expandCapacity&lt;(WTF::FailureAction)0&gt;(unsigned long, WebCore::LayerFragment*)+0x194
frame #2: WebCore`bool WTF::Vector&lt;WebCore::LayerFragment, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;::appendSlowCase&lt;(WTF::FailureAction)0, WebCore::LayerFragment&amp;&gt;(WebCore::LayerFragment&amp;)+0xac
frame #3: WebCore`WebCore::RenderMultiColumnSet::collectLayerFragments(WTF::Vector&lt;WebCore::LayerFragment, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;, WebCore::LayoutRect const&amp;, WebCore::LayoutRect const&amp;)+0x1a7c
frame #4: WebCore`WebCore::RenderFragmentedFlow::collectLayerFragments(WTF::Vector&lt;WebCore::LayerFragment, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;, WebCore::LayoutRect const&amp;, WebCore::LayoutRect const&amp;)+0x134
frame #5: WebCore`WebCore::RenderLayer::collectFragments(WTF::Vector&lt;WebCore::LayerFragment, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;, WebCore::RenderLayer const*, WebCore::LayoutRect const&amp;, WebCore::RenderLayer::PaginationInclusionMode, WebCore::ClipRectsType, WTF::OptionSet&lt;WebCore::RenderLayer::ClipRectsOption&gt;, WebCore::LayoutSize const&amp;, WebCore::LayoutRect const*, WebCore::ShouldApplyRootOffsetToFragments)+0x312c
frame #6: WebCore`WebCore::RenderLayer::paintLayerContents(WebCore::GraphicsContext&amp;, WebCore::RenderLayer::LayerPaintingInfo const&amp;, WTF::OptionSet&lt;WebCore::RenderLayer::PaintLayerFlag&gt;)+0x1400
frame #7: WebCore`WebCore::RenderLayer::paintLayer(WebCore::GraphicsContext&amp;, WebCore::RenderLayer::LayerPaintingInfo const&amp;, WTF::OptionSet&lt;WebCore::RenderLayer::PaintLayerFlag&gt;)+0x1888
frame #8: WebCore`WebCore::RenderLayer::paintLayerContents(WebCore::GraphicsContext&amp;, WebCore::RenderLayer::LayerPaintingInfo const&amp;, WTF::OptionSet&lt;WebCore::RenderLayer::PaintLayerFlag&gt;)+0x36e4
frame #9: WebCore`WebCore::RenderLayer::paintLayer(WebCore::GraphicsContext&amp;, WebCore::RenderLayer::LayerPaintingInfo const&amp;, WTF::OptionSet&lt;WebCore::RenderLayer::PaintLayerFlag&gt;)+0x1888
frame #10: WebCore`WebCore::RenderLayer::paintLayerContents(WebCore::GraphicsContext&amp;, WebCore::RenderLayer::LayerPaintingInfo const&amp;, WTF::OptionSet&lt;WebCore::RenderLayer::PaintLayerFlag&gt;)+0x36e4
frame #11: WebCore`WebCore::RenderLayer::paintLayer(WebCore::GraphicsContext&amp;, WebCore::RenderLayer::LayerPaintingInfo const&amp;, WTF::OptionSet&lt;WebCore::RenderLayer::PaintLayerFlag&gt;)+0x1888
frame #12: WebCore`WebCore::RenderLayer::paintLayerContents(WebCore::GraphicsContext&amp;, WebCore::RenderLayer::LayerPaintingInfo const&amp;, WTF::OptionSet&lt;WebCore::RenderLayer::PaintLayerFlag&gt;)+0x36e4
frame #13: WebCore`WebCore::RenderLayer::paintLayer(WebCore::GraphicsContext&amp;, WebCore::RenderLayer::LayerPaintingInfo const&amp;, WTF::OptionSet&lt;WebCore::RenderLayer::PaintLayerFlag&gt;)+0x1888
frame #14: WebCore`WebCore::RenderLayer::paintLayerContents(WebCore::GraphicsContext&amp;, WebCore::RenderLayer::LayerPaintingInfo const&amp;, WTF::OptionSet&lt;WebCore::RenderLayer::PaintLayerFlag&gt;)+0x36e4
frame #15: WebCore`WebCore::RenderLayer::paintLayer(WebCore::GraphicsContext&amp;, WebCore::RenderLayer::LayerPaintingInfo const&amp;, WTF::OptionSet&lt;WebCore::RenderLayer::PaintLayerFlag&gt;)+0x1888
frame #16: WebCore`WebCore::RenderLayer::paintLayerContents(WebCore::GraphicsContext&amp;, WebCore::RenderLayer::LayerPaintingInfo const&amp;, WTF::OptionSet&lt;WebCore::RenderLayer::PaintLayerFlag&gt;)+0x36e4
frame #17: WebCore`WebCore::RenderLayerBacking::paintIntoLayer(WebCore::GraphicsLayer const*, WebCore::GraphicsContext&amp;, WebCore::IntRect const&amp;, WTF::OptionSet&lt;WebCore::PaintBehavior&gt;, WebCore::RegionContext*)::$_14::operator()(WebCore::RenderLayer&amp;, WTF::OptionSet&lt;WebCore::RenderLayer::PaintLayerFlag&gt;) const+0xdbc
frame #18: WebCore`WebCore::RenderLayerBacking::paintIntoLayer(WebCore::GraphicsLayer const*, WebCore::GraphicsContext&amp;, WebCore::IntRect const&amp;, WTF::OptionSet&lt;WebCore::PaintBehavior&gt;, WebCore::RegionContext*)+0x440
frame #19: WebCore`WebCore::RenderLayerBacking::paintContents(WebCore::GraphicsLayer const*, WebCore::GraphicsContext&amp;, WebCore::FloatRect const&amp;, WTF::OptionSet&lt;WebCore::GraphicsLayerPaintBehavior&gt;)+0x3c4
frame #20: WebCore`WebCore::GraphicsLayer::paintGraphicsLayerContents(WebCore::GraphicsContext&amp;, WebCore::FloatRect const&amp;, WTF::OptionSet&lt;WebCore::GraphicsLayerPaintBehavior&gt;)+0x23c
frame #21: WebCore`WebCore::GraphicsLayerCA::platformCALayerPaintContents(WebCore::PlatformCALayer*, WebCore::GraphicsContext&amp;, WebCore::FloatRect const&amp;, WTF::OptionSet&lt;WebCore::GraphicsLayerPaintBehavior&gt;)+0x19c
frame #22: WebCore`WebCore::PlatformCALayer::drawLayerContents(WebCore::GraphicsContext&amp;, WebCore::PlatformCALayer*, WTF::Vector&lt;WebCore::FloatRect, 5ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;, WTF::OptionSet&lt;WebCore::GraphicsLayerPaintBehavior&gt;)+0x380
frame #23: WebKit`WebKit::RemoteLayerBackingStore::drawInContext(WebCore::GraphicsContext&amp;)+0x6b0
frame #24: WebKit`WebKit::RemoteLayerWithRemoteRenderingBackingStore::createContextAndPaintContents()+0x124
frame #25: WebKit`WebKit::RemoteLayerBackingStore::paintContents()+0x8f0
frame #26: WebKit`WebKit::RemoteLayerBackingStoreCollection::paintReachableBackingStoreContents()+0x2d0
frame #27: WebKit`WebKit::RemoteLayerTreeContext::buildTransaction(WebKit::RemoteLayerTreeTransaction&amp;, WebCore::PlatformCALayer&amp;, WebCore::ProcessQualified&lt;WTF::ObjectIdentifierGeneric&lt;WebCore::FrameIdentifierType, WTF::ObjectIdentifierMainThreadAccessTraits&gt;&gt;)+0x320
frame #28: WebKit`WebKit::RemoteLayerTreeDrawingArea::updateRendering()+0xc30
frame #29: WebCore`WebCore::ThreadTimers::sharedTimerFiredInternal()+0x340
frame #30: WebCore`WebCore::timerFired(__CFRunLoopTimer*, void*)+0xd4
frame #31: CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__+0x1c
frame #32: CoreFoundation`__CFRunLoopDoTimer+0x3c8
frame #33: CoreFoundation`__CFRunLoopDoTimers+0x160
frame #34: CoreFoundation`__CFRunLoopRun+0x73c
frame #35: CoreFoundation`CFRunLoopRunSpecific+0x25c
frame #36: Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:]+0xd0
frame #37: Foundation`-[NSRunLoop(NSRunLoop) run]+0x3c
frame #38: libxpc.dylib`_xpc_objc_main+0x2a8
frame #39: libxpc.dylib`_xpc_main+0x140
frame #40: libxpc.dylib`xpc_main+0x3c
frame #41: WebKit`WebKit::XPCServiceMain(int, char const**)+0x138
frame #42: `0x1815f50b4+
[tag] [reply] [−] Comment 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2022250</commentid>
    <comment_count>1</comment_count>
    <who name="Abigail F">abifox</who>
    <bug_when>2024-03-19 13:55:24 -0700</bug_when>
    <thetext>&lt;rdar://122491273&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2022251</commentid>
    <comment_count>2</comment_count>
    <who name="Abigail F">abifox</who>
    <bug_when>2024-03-19 13:57:10 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/26143</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2022929</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-03-21 16:11:26 -0700</bug_when>
    <thetext>Committed 276504@main (915fa90ad886): &lt;https://commits.webkit.org/276504@main&gt;

Reviewed commits have been landed. Closing PR #26143 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2079458</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2024-12-05 13:02:18 -0800</bug_when>
    <thetext>*** Bug 271104 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>