<?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>32861</bug_id>
          
          <creation_ts>2009-12-22 01:39:39 -0800</creation_ts>
          <short_desc>when condition COMPILER(RVCT) is fulfilled, we are trying to free a pointer to array allocated on the stack</short_desc>
          <delta_ts>2009-12-22 10:44:07 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Fridrich Strba">fridrich.strba</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>174230</commentid>
    <comment_count>0</comment_count>
    <who name="Fridrich Strba">fridrich.strba</who>
    <bug_when>2009-12-22 01:39:39 -0800</bug_when>
    <thetext>The following commit added COMPILER(RVCT) condition to the function and uses vsnprintf on a char[1024] and forgets to add the same condition for not freeing the variable. This might lead to a crash at runtime.

2009-12-21  Kwang Yul Seo  &lt;skyul@company100.net&gt;

        Reviewed by Eric Seidel.

        Use vsnprintf instead of vasprintf for RVCT.
        https://bugs.webkit.org/show_bug.cgi?id=32851

        RVCT does not support vasprint, so use vsnprintf instead.

        * dom/XMLTokenizerLibxml2.cpp:
        (WebCore::XMLTokenizer::error):</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>174237</commentid>
    <comment_count>1</comment_count>
      <attachid>45377</attachid>
    <who name="Kwang Yul Seo">skyul</who>
    <bug_when>2009-12-22 02:23:03 -0800</bug_when>
    <thetext>Created attachment 45377
Ooops. Don&apos;t free the pointer for COMPILER(RVCT).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>174238</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2009-12-22 02:24:09 -0800</bug_when>
    <thetext>style-queue ran check-webkit-style on attachment 45377 without any errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>174299</commentid>
    <comment_count>3</comment_count>
      <attachid>45377</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-12-22 10:44:03 -0800</bug_when>
    <thetext>Comment on attachment 45377
Ooops. Don&apos;t free the pointer for COMPILER(RVCT).

Clearing flags on attachment: 45377

Committed r52491: &lt;http://trac.webkit.org/changeset/52491&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>174300</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-12-22 10:44:07 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>45377</attachid>
            <date>2009-12-22 02:23:03 -0800</date>
            <delta_ts>2009-12-22 10:44:03 -0800</delta_ts>
            <desc>Ooops. Don&apos;t free the pointer for COMPILER(RVCT).</desc>
            <filename>dontfree.patch</filename>
            <type>text/plain</type>
            <size>1119</size>
            <attacher name="Kwang Yul Seo">skyul</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT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