<?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>142730</bug_id>
          
          <creation_ts>2015-03-16 10:29:44 -0700</creation_ts>
          <short_desc>Potentially uninitialized Inspector values</short_desc>
          <delta_ts>2015-03-16 11:24:25 -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>Web Inspector</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>graouts</cc>
    
    <cc>joepeck</cc>
    
    <cc>jonowells</cc>
    
    <cc>mattbaker</cc>
    
    <cc>nvasilyev</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1077446</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-03-16 10:29:44 -0700</bug_when>
    <thetext>In an effort to locate and resolve some WebInspector crashes I&apos;m seeing on Windows, I wanted to clean up some of the warning MSVC and its analyzer are complaining about.

The &apos;InspectorObjectBase::getInteger&apos; can return false without setting its return value to anything. This leaves arguments in a potentially uninitialized state:

source\webcore\inspector\inspectordomagent.cpp(119): warning C4701: potentially uninitialized local variable &apos;g&apos; used
source\webcore\inspector\inspectordomagent.cpp(119): warning C4701: potentially uninitialized local variable &apos;b&apos; used</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1077448</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-03-16 10:30:05 -0700</bug_when>
    <thetext>&lt;rdar://problem/20174405&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1077450</commentid>
    <comment_count>2</comment_count>
      <attachid>248731</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-03-16 10:32:31 -0700</bug_when>
    <thetext>Created attachment 248731
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1077486</commentid>
    <comment_count>3</comment_count>
      <attachid>248731</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2015-03-16 11:20:35 -0700</bug_when>
    <thetext>Comment on attachment 248731
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=248731&amp;action=review

r=me

&gt; Source/WebCore/inspector/InspectorDOMAgent.cpp:117
&gt; -    double a;
&gt; +    double a = 0;

Maybe &quot;1&quot; would be a better default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1077487</commentid>
    <comment_count>4</comment_count>
      <attachid>248731</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-03-16 11:22:29 -0700</bug_when>
    <thetext>Comment on attachment 248731
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=248731&amp;action=review

&gt;&gt; Source/WebCore/inspector/InspectorDOMAgent.cpp:117
&gt;&gt; +    double a = 0;
&gt; 
&gt; Maybe &quot;1&quot; would be a better default.

Good point! I&apos;ll fix that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1077489</commentid>
    <comment_count>5</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-03-16 11:24:25 -0700</bug_when>
    <thetext>Committed r181568: &lt;http://trac.webkit.org/changeset/181568&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>248731</attachid>
            <date>2015-03-16 10:32:31 -0700</date>
            <delta_ts>2015-03-16 11:20:35 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-142730-20150316104058.patch</filename>
            <type>text/plain</type>
            <size>1376</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE4MTU2MikKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDEzIEBACisyMDE1LTAzLTE2ICBCcmVudCBG
dWxnaGFtICA8YmZ1bGdoYW1AYXBwbGUuY29tPgorCisgICAgICAgIFBvdGVudGlhbGx5IHVuaW5p
dGlhbGl6ZWQgSW5zcGVjdG9yIHZhbHVlcworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9y
Zy9zaG93X2J1Zy5jZ2k/aWQ9MTQyNzMwCisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChP
T1BTISkuCisKKyAgICAgICAgKiBpbnNwZWN0b3IvSW5zcGVjdG9yRE9NQWdlbnQuY3BwOgorICAg
ICAgICAoV2ViQ29yZTo6cGFyc2VDb2xvcik6IE1ha2Ugc3VyZSBjb2xvciB2YWx1ZXMgYXJlIGdp
dmVuIGFuIGluaXRpYWwgdmFsdWUuCisKIDIwMTUtMDMtMTYgIENvbnJhZCBTaHVsdHogIDxjb25y
YWRfc2h1bHR6QGFwcGxlLmNvbT4KIAogICAgICAgICBBbGxvdyBjbGllbnRzIHRvIHNlbGVjdGl2
ZWx5IGRpc2FibGUgcGx1Zy1pbnMKSW5kZXg6IFNvdXJjZS9XZWJDb3JlL2luc3BlY3Rvci9JbnNw
ZWN0b3JET01BZ2VudC5jcHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291cmNlL1dlYkNvcmUvaW5zcGVjdG9y
L0luc3BlY3RvckRPTUFnZW50LmNwcAkocmV2aXNpb24gMTgxNTYxKQorKysgU291cmNlL1dlYkNv
cmUvaW5zcGVjdG9yL0luc3BlY3RvckRPTUFnZW50LmNwcAkod29ya2luZyBjb3B5KQpAQCAtMTA4
LDEzICsxMDgsMTMgQEAgc3RhdGljIENvbG9yIHBhcnNlQ29sb3IoY29uc3QgUmVmUHRyPElucwog
ICAgIGlmICghY29sb3JPYmplY3QpCiAgICAgICAgIHJldHVybiBDb2xvcjo6dHJhbnNwYXJlbnQ7
CiAKLSAgICBpbnQgcjsKLSAgICBpbnQgZzsKLSAgICBpbnQgYjsKKyAgICBpbnQgciA9IDA7Cisg
ICAgaW50IGcgPSAwOworICAgIGludCBiID0gMDsKICAgICBpZiAoIWNvbG9yT2JqZWN0LT5nZXRJ
bnRlZ2VyKCJyIiwgcikgfHwgIWNvbG9yT2JqZWN0LT5nZXRJbnRlZ2VyKCJnIiwgZykgfHwgIWNv
bG9yT2JqZWN0LT5nZXRJbnRlZ2VyKCJiIiwgYikpCiAgICAgICAgIHJldHVybiBDb2xvcjo6dHJh
bnNwYXJlbnQ7CiAKLSAgICBkb3VibGUgYTsKKyAgICBkb3VibGUgYSA9IDA7CiAgICAgaWYgKCFj
b2xvck9iamVjdC0+Z2V0RG91YmxlKCJhIiwgYSkpCiAgICAgICAgIHJldHVybiBDb2xvcihyLCBn
LCBiKTsKIAo=
</data>
<flag name="review"
          id="273609"
          type_id="1"
          status="+"
          setter="joepeck"
    />
          </attachment>
      

    </bug>

</bugzilla>