public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
From: pmuldoon@sourceware.org
To: frysk-cvs@sourceware.org
Subject: [SCM] frysk system monitor/debugger branch, master, updated. 56f7ede3726faf57106e3b509f5f7c7073546517
Date: Wed, 07 Nov 2007 10:38:00 -0000	[thread overview]
Message-ID: <20071107103810.32267.qmail@sourceware.org> (raw)

The branch, master has been updated
       via  56f7ede3726faf57106e3b509f5f7c7073546517 (commit)
      from  018fde86cb15293f8bc7fc89ae5fdc595fd1a2ce (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 56f7ede3726faf57106e3b509f5f7c7073546517
Author: Phil Muldoon <pmuldoon@redhat.com>
Date:   Wed Nov 7 10:38:00 2007 +0000

    Check ELF file is a corefile as a very first check.
    
    2007-11-07  Phil Muldoon  <pmuldoon@redhat.com>
    
    	* LinuxHost.java (LinuxHost): Create up front ET_CORE check in
    	constructor.

-----------------------------------------------------------------------

Summary of changes:
 frysk-core/frysk/proc/dead/ChangeLog      |    5 +++++
 frysk-core/frysk/proc/dead/LinuxHost.java |    6 ++++++
 2 files changed, 11 insertions(+), 0 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/proc/dead/ChangeLog b/frysk-core/frysk/proc/dead/ChangeLog
index c11c271..4c81cac 100644
--- a/frysk-core/frysk/proc/dead/ChangeLog
+++ b/frysk-core/frysk/proc/dead/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-07  Phil Muldoon  <pmuldoon@redhat.com>
+
+	* LinuxHost.java (LinuxHost): Create up front ET_CORE check in
+	constructor.
+
 2007-11-06  Phil Muldoon  <pmuldoon@redhat.com>
 
 	* LinuxProc.java (LinuxProc): Do not search for exe beyond pwd.
diff --git a/frysk-core/frysk/proc/dead/LinuxHost.java b/frysk-core/frysk/proc/dead/LinuxHost.java
index 3bc2eeb..52e7263 100644
--- a/frysk-core/frysk/proc/dead/LinuxHost.java
+++ b/frysk-core/frysk/proc/dead/LinuxHost.java
@@ -76,10 +76,16 @@ public class LinuxHost extends DeadHost {
       }
       catch (Exception e)
       {
+    	System.out.println("Not in this exception");
         throw new RuntimeException("Corefile " + this.coreFile + " is "+ 
 				   "not a valid ELF core file.");
       }
 
+      if (corefileElf.getEHeader().type != ElfEHeader.PHEADER_ET_CORE) {
+    	  this.corefileElf.close();
+    	  throw new RuntimeException("'"+this.coreFile.getAbsolutePath()+"' is not a corefile.");
+      }
+    	  
       if (doRefresh)
 	  this.sendRefresh(true);
   }


hooks/post-receive
--
frysk system monitor/debugger


                 reply	other threads:[~2007-11-07 10:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071107103810.32267.qmail@sourceware.org \
    --to=pmuldoon@sourceware.org \
    --cc=frysk-cvs@sourceware.org \
    --cc=frysk@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).