<?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>134928</bug_id>
          
          <creation_ts>2014-07-15 10:38:22 -0700</creation_ts>
          <short_desc>ScriptExecutable::forEachCodeBlock can dereference null CodeBlocks</short_desc>
          <delta_ts>2014-07-15 12:12:27 -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>JavaScriptCore</component>
          <version>528+ (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="Mark Hahnenberg">mhahnenberg</reporter>
          <assigned_to name="Mark Hahnenberg">mhahnenberg</assigned_to>
          <cc>commit-queue</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1022506</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hahnenberg">mhahnenberg</who>
    <bug_when>2014-07-15 10:38:22 -0700</bug_when>
    <thetext>Executable::forEachCodeBlock doesn&apos;t check for null CodeBlocks in the ProgramExecutable and EvalExecutable cases, so if the CodeBlock has been cleared from either of these Executables we&apos;ll crash when dereferencing null inside whatever functor was passed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1022508</commentid>
    <comment_count>1</comment_count>
      <attachid>234937</attachid>
    <who name="Mark Hahnenberg">mhahnenberg</who>
    <bug_when>2014-07-15 10:40:23 -0700</bug_when>
    <thetext>Created attachment 234937
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1022514</commentid>
    <comment_count>2</comment_count>
      <attachid>234937</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2014-07-15 11:02:03 -0700</bug_when>
    <thetext>Comment on attachment 234937
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1022534</commentid>
    <comment_count>3</comment_count>
      <attachid>234937</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-07-15 12:12:24 -0700</bug_when>
    <thetext>Comment on attachment 234937
Patch

Clearing flags on attachment: 234937

Committed r171108: &lt;http://trac.webkit.org/changeset/171108&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1022535</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-07-15 12:12:27 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>234937</attachid>
            <date>2014-07-15 10:40:23 -0700</date>
            <delta_ts>2014-07-15 12:12:24 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-134928-20140715104007.patch</filename>
            <type>text/plain</type>
            <size>1786</size>
            <attacher name="Mark Hahnenberg">mhahnenberg</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTcxMTA2KQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDEzIEBA
CisyMDE0LTA3LTE1ICB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