<?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>128454</bug_id>
          
          <creation_ts>2014-02-08 07:32:26 -0800</creation_ts>
          <short_desc>ImageDiff compile fails when compiled with libc++</short_desc>
          <delta_ts>2014-02-08 08:10:00 -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>WebKitGTK</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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rajaram Gaunker">zimbabao</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>978365</commentid>
    <comment_count>0</comment_count>
    <who name="Rajaram Gaunker">zimbabao</who>
    <bug_when>2014-02-08 07:32:26 -0800</bug_when>
    <thetext>repro steps: Compile webkit using libc++.

Observation: Following compile errors.

Resolution: include cstdlib in ImageDiff.cpp.

WebKit/Tools/ImageDiff/gtk/ImageDiff.cpp:103:61: error: use of undeclared identifier &apos;malloc&apos;; did you mean &apos;g_malloc&apos;?
    unsigned char* diffBuffer = static_cast&lt;unsigned char*&gt;(malloc(width * height));
                                                            ^~~~~~
                                                            g_malloc
webkit_deps/include/glib-2.0/glib/gmem.h:78:10: note: &apos;g_malloc&apos; declared here
gpointer g_malloc         (gsize         n_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
         ^
WebKit/Tools/ImageDiff/gtk/ImageDiff.cpp:147:5: error: use of undeclared identifier &apos;free&apos;
    free(diffBuffer);
    ^
WebKit/Tools/ImageDiff/gtk/ImageDiff.cpp:207:30: error: use of undeclared identifier &apos;strtol&apos;
            long imageSize = strtol(tokens[1], 0, 10);
                             ^
3 errors generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>978366</commentid>
    <comment_count>1</comment_count>
      <attachid>223567</attachid>
    <who name="Rajaram Gaunker">zimbabao</who>
    <bug_when>2014-02-08 07:38:09 -0800</bug_when>
    <thetext>Created attachment 223567
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>978368</commentid>
    <comment_count>2</comment_count>
      <attachid>223567</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-02-08 08:09:57 -0800</bug_when>
    <thetext>Comment on attachment 223567
Patch

Clearing flags on attachment: 223567

Committed r163711: &lt;http://trac.webkit.org/changeset/163711&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>978369</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-02-08 08:10:00 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>223567</attachid>
            <date>2014-02-08 07:38:09 -0800</date>
            <delta_ts>2014-02-08 08:09:57 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-128454-20140208210807.patch</filename>
            <type>text/plain</type>
            <size>993</size>
            <attacher name="Rajaram Gaunker">zimbabao</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTYzNjI1CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ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