<?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>158225</bug_id>
          
          <creation_ts>2016-05-31 05:23:39 -0700</creation_ts>
          <short_desc>[Win] Potential null pointer crash when setting cursor.</short_desc>
          <delta_ts>2016-06-01 02:15:08 -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>WebKit 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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Per Arne Vollan">pvollan</reporter>
          <assigned_to name="Per Arne Vollan">pvollan</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bfulgham</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1197764</commentid>
    <comment_count>0</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2016-05-31 05:23:39 -0700</bug_when>
    <thetext>Code inspection shows that the call cursor.platformCursor() can return null.

void WebChromeClient::setCursor(const Cursor&amp; cursor)
{
    HCURSOR platformCursor = cursor.platformCursor()-&gt;nativeCursor();
    ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197765</commentid>
    <comment_count>1</comment_count>
      <attachid>280139</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2016-05-31 05:32:42 -0700</bug_when>
    <thetext>Created attachment 280139
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197806</commentid>
    <comment_count>2</comment_count>
      <attachid>280139</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2016-05-31 09:52:35 -0700</bug_when>
    <thetext>Comment on attachment 280139
Patch

Sure</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1198108</commentid>
    <comment_count>3</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2016-06-01 02:13:50 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Comment on attachment 280139 [details]
&gt; Patch
&gt; 
&gt; Sure

Thanks for reviewing :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1198109</commentid>
    <comment_count>4</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2016-06-01 02:15:08 -0700</bug_when>
    <thetext>Committed r201546: &lt;https://trac.webkit.org/changeset/201546&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>280139</attachid>
            <date>2016-05-31 05:32:42 -0700</date>
            <delta_ts>2016-05-31 09:52:35 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-158225-20160531053337.patch</filename>
            <type>text/plain</type>
            <size>1242</size>
            <attacher name="Per Arne Vollan">pvollan</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvd2luL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2Uv
V2ViS2l0L3dpbi9DaGFuZ2VMb2cJKHJldmlzaW9uIDIwMTUwOSkKKysrIFNvdXJjZS9XZWJLaXQv
d2luL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDE2LTA1LTMx
ICBQZXIgQXJuZSBWb2xsYW4gIDxwdm9sb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sKKyAgICBpZiAo
IWN1cnNvci5wbGF0Zm9ybUN1cnNvcigpKQorICAgICAgICByZXR1cm47CisKICAgICBIQ1VSU09S
IHBsYXRmb3JtQ3Vyc29yID0gY3Vyc29yLnBsYXRmb3JtQ3Vyc29yKCktPm5hdGl2ZUN1cnNvcigp
OwogICAgIGlmICghcGxhdGZvcm1DdXJzb3IpCiAgICAgICAgIHJldHVybjsK
</data>
<flag name="review"
          id="304110"
          type_id="1"
          status="+"
          setter="achristensen"
    />
          </attachment>
      

    </bug>

</bugzilla>