Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Peter Rye <prye@picu-sgh.demon.co.uk>
Subject: Re: tripwire
Date: 1998/11/23	[thread overview]
Message-ID: <m3sofaw2jv.fsf@picu-sgh.demon.co.uk> (raw)
In-Reply-To: 36599FC9.5E355C5A@debussy.ucsc.edu

Helmut Katzgraber <dummkopf@debussy.ucsc.edu> writes:

> Hi,
> 
> I tried what you suggested and it compiled. But when I try to initialize
> tripwire I get a core dump.
> 
> Thanks, h.
> 
> 
> Peter Rye wrote:
> 
> > tripwire-1.2 will compile if you edit the Makefile. (Uncomment the CFLAGS
> > line that looks like:
> > CFLAGS = -DTW_TYPE32='int'  # DEC OSF/1 Alpha (or any other architecture
> >
> > Unfortunately this doesn't completely solve the problem as there appears to
> > be a bug in the md5 code which results in it failing its own tests.

I did find a patch which apparently fixes this problem (although I don't
get a core dump here).

Here it is. It might help.

--- config.parse.c.orig	Wed Jul 20 20:03:26 1994
+++ config.parse.c	Mon May 18 09:58:14 1998
@@ -352,8 +352,14 @@
     /* clean up */
     if (!specified_configmode)
 	(void) fclose(fpin);
-
-    rewind(fpout);
+    else {
+	/* Bug fix:  fpin and fpout are the same. fpout was being */
+	/* rewound after fpin was being closed.  The behavior of  */
+	/* this is undefined, and causes core dumps occasionally. */
+	/* Added the else and changed fpout to fpin for clarity.  */
+	/* Bug Fix by Dan D Niles (dniles@iname.com) -DDN- */ 
+	rewind(fpin);
+    }
     return;
 }
 



      parent reply	other threads:[~1998-11-23  5:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-20  5:00 tripwire Helmut Katzgraber
1998-11-21  5:00 ` tripwire Peter Rye
1998-11-23  5:00   ` tripwire Helmut Katzgraber
1998-11-23  5:00     ` tripwire Helmut Katzgraber
1998-11-23  5:00     ` Peter Rye [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox