<?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>20401</bug_id>
          
          <creation_ts>2008-08-15 07:42:24 -0700</creation_ts>
          <short_desc>[GTK] Crash inside String::fromUTF8 below PluginPackage::fetchInfo</short_desc>
          <delta_ts>2008-08-28 12:08:32 -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>Plug-ins</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Frederik Himpe">fhimpe</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88570</commentid>
    <comment_count>0</comment_count>
    <who name="Frederik Himpe">fhimpe</who>
    <bug_when>2008-08-15 07:42:24 -0700</bug_when>
    <thetext>When starting up liferea with webkit gtk svn 35718 on Mandriva Linux Cooker x86_64, it immediately crashes with this backtrace:

(gdb) bt
#0  0x00007fd945c80b30 in strlen () from /lib64/libc.so.6
#1  0x00007fd93e519006 in WebCore::String::fromUTF8 (
    string=0x61726f65685420 &lt;Address 0x61726f65685420 out of bounds&gt;)
    at WebCore/platform/text/String.cpp:608
#2  0x00007fd93e73a69a in WebCore::PluginPackage::fetchInfo (
    this=0x7fd93bd70000) at WebCore/plugins/gtk/PluginPackageGtk.cpp:78
#3  0x00007fd93e531294 in WebCore::PluginPackage::createPackage (
    path=@0x7fd93bd10168, lastModified=@0x7fff51b0cda8)
    at WebCore/plugins/PluginPackage.cpp:149
#4  0x00007fd93e52a660 in WebCore::PluginDatabase::refresh (
    this=0x7fd93bd3ce10) at WebCore/plugins/PluginDatabase.cpp:109
#5  0x00007fd93e52b3b3 in WebCore::PluginDatabase::installedPlugins ()
    at WebCore/plugins/PluginDatabase.cpp:44
#6  0x00007fd93e73982b in WebCore::PluginData::initPlugins (
    this=0x61726f65685420) at WebCore/plugins/gtk/PluginDataGtk.cpp:32
#7  0x00007fd93e527574 in PluginData (this=0x61726f65685420, 
    page=0x61726f65685420) at WebCore/plugins/PluginData.cpp:32
#8  0x00007fd93e4da5e8 in WebCore::Page::pluginData (this=0x7fd93bd0bea0)
    at WebCore/plugins/PluginData.h:49
#9  0x00007fd93e2e62e0 in WebCore::DOMImplementation::createDocument (
    type=@0x7fd93bd139a0, frame=0x7fd93bd0a1a0, 
    inViewSourceMode=&lt;value optimized out&gt;)
    at WebCore/dom/DOMImplementation.cpp:320
---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---
#10 0x00007fd93e450343 in WebCore::FrameLoader::begin (this=0x7fd93bd13848, 
    url=@0x7fd93bd139e8, dispatch=&lt;value optimized out&gt;, origin=0x0)
    at WebCore/loader/FrameLoader.cpp:935
#11 0x00007fd93e45ead2 in WebCore::FrameLoader::receivedFirstData (
    this=0x61726f65685420) at WebCore/loader/FrameLoader.cpp:868
#12 0x00007fd93e45ef74 in WebCore::FrameLoader::setEncoding (
    this=0x7fd93bd13848, name=@0x7fff51b0d210, userChosen=false)
    at WebCore/loader/FrameLoader.cpp:1853
#13 0x00007fd93e21dc81 in WebKit::FrameLoaderClient::committedLoad (
    this=0x7fd93bd12f00, loader=&lt;value optimized out&gt;, 
    data=0x7fd93bd8f400 &quot;&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;utf-8\&quot;?&gt;&lt;!DOCTYPE html PUBLIC \&quot;-//W3C//DTD XHTML 1.0 Transitional//EN\&quot;\n\&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\&quot;&gt;\n&lt;html xmlns=\&quot;http://www.w3.org/1999/xhtm&quot;..., length=6178) at WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp:179
#14 0x00007fd93e43a0bd in WebCore::DocumentLoader::commitLoad (
    this=0x7fd93bd3b100, 
    data=0x7fd93bd8f400 &quot;&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;utf-8\&quot;?&gt;&lt;!DOCTYPE html PUBLIC \&quot;-//W3C//DTD XHTML 1.0 Transitional//EN\&quot;\n\&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\&quot;&gt;\n&lt;html xmlns=\&quot;http://www.w3.org/1999/xhtm&quot;..., length=6178) at WebCore/loader/DocumentLoader.cpp:355
#15 0x00007fd93e469f99 in WebCore::ResourceLoader::didReceiveData (
    this=0x7fd93bd77800, 
    data=0x7fd93bd8f400 &quot;&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;utf-8\&quot;?&gt;&lt;!DOCTYPE htm---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---
l PUBLIC \&quot;-//W3C//DTD XHTML 1.0 Transitional//EN\&quot;\n\&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\&quot;&gt;\n&lt;html xmlns=\&quot;http://www.w3.org/1999/xhtm&quot;..., length=6178, lengthReceived=6178, allAtOnce=false)
    at WebCore/loader/ResourceLoader.cpp:251
#16 0x00007fd93e462f5e in WebCore::MainResourceLoader::didReceiveData (
    this=0x61726f65685420, 
    data=0x61726f65685420 &lt;Address 0x61726f65685420 out of bounds&gt;, 
    length=14409792, lengthReceived=0, allAtOnce=32)
    at WebCore/loader/MainResourceLoader.cpp:305
#17 0x00007fd93e464407 in WebCore::MainResourceLoader::continueAfterContentPolicy (this=0x7fd93bd77800, contentPolicy=&lt;value optimized out&gt;, 
    r=&lt;value optimized out&gt;) at WebCore/loader/MainResourceLoader.cpp:248
#18 0x00007fd93e464826 in WebCore::MainResourceLoader::continueAfterContentPolicy (this=0x7fd93bd77800, policy=WebCore::PolicyUse)
    at WebCore/loader/MainResourceLoader.cpp:265
#19 0x00007fd93e4638f3 in WebCore::MainResourceLoader::didReceiveResponse (
    this=0x7fd93bd77800, r=@0x7fff51b0d440)
    at WebCore/loader/MainResourceLoader.cpp:292
#20 0x00007fd93e464b7b in WebCore::MainResourceLoader::handleDataLoadNow (
    this=0x7fd93bd77800) at WebCore/loader/MainResourceLoader.cpp:361
#21 0x00007fd93e4f33aa in WebCore::TimerBase::fireTimers (
    fireTime=1218810674.186157, firingTimers=@0x7fff51b0d5d0)
    at WebCore/platform/Timer.cpp:347
---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---
#22 0x00007fd93e4f345e in WebCore::TimerBase::sharedTimerFired ()
    at WebCore/platform/Timer.cpp:368
#23 0x00007fd93e754c52 in timeout_cb ()
    at WebCore/platform/gtk/SharedTimerGtk.cpp:48
#24 0x00007fd945f9c9d2 in IA__g_main_context_dispatch (context=0xd42a80)
    at gmain.c:2072
#25 0x00007fd945fa016d in g_main_context_iterate (context=0xd42a80, block=1, 
    dispatch=1, self=&lt;value optimized out&gt;) at gmain.c:2705
#26 0x00007fd945fa069d in IA__g_main_loop_run (loop=0x12382f0) at gmain.c:2928
#27 0x00007fd94888cf97 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
#28 0x0000000000431cf0 in main (argc=1, argv=0x7fff51b0d918) at main.c:318</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89662</commentid>
    <comment_count>1</comment_count>
    <who name="Frederik Himpe">fhimpe</who>
    <bug_when>2008-08-28 12:08:32 -0700</bug_when>
    <thetext>Liferea now starts again with a recent webkit svn check-out, so I guess it&apos;s fixed...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>