<?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>22885</bug_id>
          
          <creation_ts>2008-12-16 13:37:57 -0800</creation_ts>
          <short_desc>Memory corruption in GIFImageDecoder.cpp</short_desc>
          <delta_ts>2008-12-16 13:44:42 -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>Images</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://img.waffleimages.com/9d5247a3e6a95c2966c0c5f34b47a7837309f2af/lolchrome.gif</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Kasting">pkasting</reporter>
          <assigned_to name="Peter Kasting">pkasting</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102697</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2008-12-16 13:37:57 -0800</bug_when>
    <thetext>GIFImageDecoder.cpp (which is not used by Safari, but is used by the Cairo port, and is related to the code used by Chromium) has a memory corruption bug with GIFs which insert empty frames, like the one given above.

The fix is to ensure frames get initialized even if we never call haveDecodedRow().  Patch coming shortly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102698</commentid>
    <comment_count>1</comment_count>
      <attachid>26066</attachid>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2008-12-16 13:40:32 -0800</bug_when>
    <thetext>Created attachment 26066
patch v1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102699</commentid>
    <comment_count>2</comment_count>
      <attachid>26066</attachid>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2008-12-16 13:41:39 -0800</bug_when>
    <thetext>Comment on attachment 26066
patch v1

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102700</commentid>
    <comment_count>3</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2008-12-16 13:44:42 -0800</bug_when>
    <thetext>Fixed in r39340.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>26066</attachid>
            <date>2008-12-16 13:40:32 -0800</date>
            <delta_ts>2008-12-16 13:41:39 -0800</delta_ts>
            <desc>patch v1</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <size>1532</size>
            <attacher name="Peter Kasting">pkasting</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAzOTMzOSkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTMgQEAKKzIwMDgtMTItMTYgIFBldGVyIEthc3RpbmcgIDxwa2FzdGluZ0Bnb29n
bGUuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAg
IGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0yMjg4NQorICAgICAgICBG
aXggbWVtb3J5IGNvcnJ1cHRpb24gaW4gR0lGSW1hZ2VEZWNvZGVyLmNwcCB3aXRoIGNlcnRhaW4g
R0lGcy4KKworICAg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FJvdygpIGJlZm9yZSBnZXR0aW5nIGhlcmUuCiAgICAgUkdCQTMy
QnVmZmVyJiBidWZmZXIgPSBtX2ZyYW1lQnVmZmVyQ2FjaGVbZnJhbWVJbmRleF07CisgICAgaWYg
KGJ1ZmZlci5zdGF0dXMoKSA9PSBSR0JBMzJCdWZmZXI6OkZyYW1lRW1wdHkpCisgICAgICAgIGlu
aXRGcmFtZUJ1ZmZlcihmcmFtZUluZGV4KTsKKwogICAgIGJ1ZmZlci5lbnN1cmVIZWlnaHQobV9z
aXplLmhlaWdodCgpKTsKICAgICBidWZmZXIuc2V0U3RhdHVzKFJHQkEzMkJ1ZmZlcjo6RnJhbWVD
b21wbGV0ZSk7CiAgICAgYnVmZmVyLnNldER1cmF0aW9uKGZyYW1lRHVyYXRpb24pOwo=
</data>
<flag name="review"
          id="12284"
          type_id="1"
          status="+"
          setter="hyatt"
    />
          </attachment>
      

    </bug>

</bugzilla>