<?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>247872</bug_id>
          
          <creation_ts>2022-11-13 18:21:13 -0800</creation_ts>
          <short_desc>[WinCairo] KeyedDecoderGeneric: TestWebCore.KeyedCoding.DecodeRandomData is crashing</short_desc>
          <delta_ts>2022-11-14 01:28:24 -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>WebCore Misc.</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="Fujii Hironori">fujii</reporter>
          <assigned_to name="Fujii Hironori">fujii</assigned_to>
          <cc>don.olmstead</cc>
    
    <cc>ross.kirsling</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1912141</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-11-13 18:21:13 -0800</bug_when>
    <thetext>[WinCairo] KeyedDecoderGeneric: TestWebCore.KeyedCoding.DecodeRandomData is failing

    TestWebCore.KeyedCoding.DecodeRandomData
        1   00007FF8FA44248B WTFCrash
        2   00007FF8D05E8FFF (null)
        3   00007FF8D062D7AE (null)
        4   00007FF8D062A6D1 (null)
        5   00007FF8D09D7FC3 WebCore::appendLinkedFonts
        6   00007FF8D0A5CB26 WebCore::KeyedDecoder::decoder
        7   00007FF8D0A5BAE0 WebCore::KeyedDecoder::decoder
        8   00007FF8D0A64313 WebCore::KeyedDecoder::decoder
        9   00007FF8D0A63A36 WebCore::KeyedDecoder::decoder
        10  00007FF8D0A5B898 WebCore::KeyedDecoder::decoder
        11  00007FF8D05E7884 (null)
        12  00007FF8D530961D WebCore::XPathResult::snapshotItem
        13  00007FF8D53094FC WebCore::XPathResult::snapshotItem
        14  00007FF8D52F068B WebCore::XPathResult::snapshotItem
        15  00007FF8D52F120D WebCore::XPathResult::snapshotItem
        16  00007FF8D52F1AEE WebCore::XPathResult::snapshotItem
        17  00007FF8D52F7E57 WebCore::XPathResult::snapshotItem
        18  00007FF8D53097AD WebCore::XPathResult::snapshotItem
        19  00007FF8D53095EC WebCore::XPathResult::snapshotItem
        20  00007FF8D52F2326 WebCore::XPathResult::snapshotItem
        21  00007FF8D0517573 (null)
        22  00007FF8D051490E (null)
        23  00007FF8D066666B WebCore::PlatformTimeRanges::length
        24  00007FF8D06666BC dllLauncherEntryPoint
        25  00007FF701AA1A0C (null)
        26  00007FF701AA5BD4 (null)
        27  00007FF9083E7974 BaseThreadInitThunk
        28  00007FF9247AA271 RtlUserThreadStart
        
        File name unavailable
        SEH exception with code 0xc0000005 thrown in the test body.
        
254680@main: Last good
254685@main: First bad, https://build.webkit.org/#/builders/60/builds/8127</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912142</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-11-13 18:22:06 -0800</bug_when>
    <thetext>https://results.webkit.org/?suite=api-tests&amp;test=TestWebCore.KeyedCoding.DecodeRandomData</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912153</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-11-13 20:24:18 -0800</bug_when>
    <thetext>Backtrace:

&gt; WTF.dll!WTFCrash() Line 327	C++
&gt; TestWebCoreLib.dll!WTF::VectorBufferBase&lt;unsigned char,WTF::FastMalloc&gt;::allocateBuffer&lt;0&gt;(unsigned __int64 newCapacity) Line 313	C++
&gt; TestWebCoreLib.dll!WTF::VectorBufferBase&lt;unsigned char,WTF::FastMalloc&gt;::allocateBuffer(unsigned __int64 newCapacity) Line 327	C++
&gt; TestWebCoreLib.dll!WTF::VectorBuffer&lt;unsigned char,0,WTF::FastMalloc&gt;::VectorBuffer&lt;unsigned char,0,WTF::FastMalloc&gt;(unsigned __int64 capacity, unsigned __int64 size) Line 414	C++
&gt; TestWebCoreLib.dll!WTF::Vector&lt;unsigned char,0,WTF::CrashOnOverflow,16,WTF::FastMalloc&gt;::Vector&lt;unsigned char,0,WTF::CrashOnOverflow,16,WTF::FastMalloc&gt;(unsigned __int64 size) Line 689	C++
&gt; TestWebCoreLib.dll!WebCore::readString(WTF::Persistence::Decoder &amp; decoder) Line 61	C++
&gt; TestWebCoreLib.dll!WebCore::KeyedDecoderGeneric::KeyedDecoderGeneric(const unsigned char * data, unsigned __int64 size) Line 106	C++
&gt; [External Code]	
&gt; TestWebCoreLib.dll!WTF::makeUnique&lt;WebCore::KeyedDecoderGeneric,unsigned char const * &amp;,unsigned __int64 &amp;&gt;(const unsigned char * &amp; &lt;args_0&gt;, unsigned __int64 &amp; &lt;args_1&gt;) Line 539	C++
&gt; TestWebCoreLib.dll!WebCore::KeyedDecoder::decoder(const unsigned char * data, unsigned __int64 size) Line 86	C++
&gt; TestWebCoreLib.dll!TestWebKitAPI::KeyedCoding_DecodeRandomData_Test::TestBody() Line 309	C++
&gt; TestWebCoreLib.dll!testing::internal::HandleSehExceptionsInMethodIfSupported&lt;testing::Test,void&gt;(testing::Test * object, void(testing::Test::*)() method, const char * location) Line 2592	C++
&gt; TestWebCoreLib.dll!testing::internal::HandleExceptionsInMethodIfSupported&lt;testing::Test,void&gt;(testing::Test * object, void(testing::Test::*)() method, const char * location) Line 2662	C++
&gt; TestWebCoreLib.dll!testing::Test::Run() Line 2689	C++
&gt; TestWebCoreLib.dll!testing::TestInfo::Run() Line 2864	C++
&gt; TestWebCoreLib.dll!testing::TestSuite::Run() Line 3016	C++
&gt; TestWebCoreLib.dll!testing::internal::UnitTestImpl::RunAllTests() Line 5852	C++
&gt; TestWebCoreLib.dll!testing::internal::HandleSehExceptionsInMethodIfSupported&lt;testing::internal::UnitTestImpl,bool&gt;(testing::internal::UnitTestImpl * object, bool(testing::internal::UnitTestImpl::*)() method, const char * location) Line 2592	C++
&gt; TestWebCoreLib.dll!testing::internal::HandleExceptionsInMethodIfSupported&lt;testing::internal::UnitTestImpl,bool&gt;(testing::internal::UnitTestImpl * object, bool(testing::internal::UnitTestImpl::*)() method, const char * location) Line 2662	C++
&gt; TestWebCoreLib.dll!testing::UnitTest::Run() Line 5434	C++
&gt; TestWebCoreLib.dll!RUN_ALL_TESTS() Line 2472	C++
&gt; TestWebCoreLib.dll!TestWebKitAPI::TestsController::run(int argc, char * * argv) Line 89	C++
&gt; TestWebCoreLib.dll!main(int argc, char * * argv) Line 41	C++
&gt; TestWebCoreLib.dll!dllLauncherEntryPoint(int argc, char * * argv) Line 49	C++
&gt; TestWebCore.exe!main(int argc, const char * * argv) Line 223	C++
&gt; [External Code]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912155</commentid>
    <comment_count>3</comment_count>
      <attachid>463511</attachid>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-11-13 20:25:46 -0800</bug_when>
    <thetext>Created attachment 463511
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912205</commentid>
    <comment_count>4</comment_count>
      <attachid>463511</attachid>
    <who name="Ross Kirsling">ross.kirsling</who>
    <bug_when>2022-11-14 00:19:15 -0800</bug_when>
    <thetext>Comment on attachment 463511
Patch

LGTM</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912223</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-14 01:27:37 -0800</bug_when>
    <thetext>Committed 256642@main (6d664461ef74): &lt;https://commits.webkit.org/256642@main&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 463511.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912226</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-11-14 01:28:24 -0800</bug_when>
    <thetext>&lt;rdar://problem/102310938&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>463511</attachid>
            <date>2022-11-13 20:25:46 -0800</date>
            <delta_ts>2022-11-14 01:27:37 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-247872-20221114132545.patch</filename>
            <type>text/plain</type>
            <size>1290</size>
            <attacher name="Fujii Hironori">fujii</attacher>
            
              <data encoding="base64">RnJvbSA3MDA5NjcxNThiMzMyNDZkZTAxNGMzMmNjZDE2YmJhN2I5NjlmNjZjIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBGdWppaSBIaXJvbm9yaSA8SGlyb25vcmkuRnVqaWlAc29ueS5j
b20+CkRhdGU6IE1vbiwgMTQgTm92IDIwMjIgMTM6MTU6NTUgKzA5MDAKU3ViamVjdDogW1BBVENI
XSBbV2luQ2Fpcm9dIEtleWVkRGVjb2RlckdlbmVyaWM6CiBUZXN0V2ViQ29yZS5LZXllZENvZGlu
Zy5EZWNvZGVSYW5kb21EYXRhIGlzIGNyYXNoaW5nCiBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9z
aG93X2J1Zy5jZ2k/aWQ9MjQ3ODcyCgpSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KCiogU291
cmNlL1dlYkNvcmUvcGxhdGZvcm0vZ2VuZXJpYy9LZXllZERlY29kZXJHZW5lcmljLmNwcDoKKFdl
YkNvcmU6OnJlYWRTdHJpbmcpOiBDaGVjayB0a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