This is the mail archive of the frysk-cvs@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[SCM] frysk system monitor/debugger branch, master, updated. 56f7ede3726faf57106e3b509f5f7c7073546517


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]