diff options
author | steve <steve@FreeBSD.org> | 1999-05-29 12:31:33 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1999-05-29 12:31:33 +0800 |
commit | 6e468da7498d97b4a769b3fd1eb8a4abcb9ab19b (patch) | |
tree | 030e410a5ddb5a706c52ef5b7663df7131f2dcca /misc | |
parent | b404ecd61b9c1a67d68a5018cb76039ad3392033 (diff) | |
download | freebsd-ports-gnome-6e468da7498d97b4a769b3fd1eb8a4abcb9ab19b.tar.gz freebsd-ports-gnome-6e468da7498d97b4a769b3fd1eb8a4abcb9ab19b.tar.zst freebsd-ports-gnome-6e468da7498d97b4a769b3fd1eb8a4abcb9ab19b.zip |
Fix a stack overflow problem with an empty config file.
PR: 11834
Submitted by: maintainer
Diffstat (limited to 'misc')
-rw-r--r-- | misc/logsurfer+/Makefile | 4 | ||||
-rw-r--r-- | misc/logsurfer+/files/patch-ac | 10 | ||||
-rw-r--r-- | misc/logsurfer+/files/patch-ad | 10 | ||||
-rw-r--r-- | misc/logsurfer/Makefile | 4 | ||||
-rw-r--r-- | misc/logsurfer/files/patch-ac | 10 | ||||
-rw-r--r-- | misc/logsurfer/files/patch-ad | 10 |
6 files changed, 44 insertions, 4 deletions
diff --git a/misc/logsurfer+/Makefile b/misc/logsurfer+/Makefile index 05b641b51b81..8dd6f4a7ce43 100644 --- a/misc/logsurfer+/Makefile +++ b/misc/logsurfer+/Makefile @@ -3,14 +3,14 @@ # Date created: 28 Jul 1996 # Whom: shanee@augusta.de # -# $Id: Makefile,v 1.3 1998/02/06 19:07:05 fenner Exp $ +# $Id: Makefile,v 1.4 1998/10/04 22:41:22 steve Exp $ # DISTNAME= logsurfer-1.41 CATEGORIES= misc MASTER_SITES= ftp://ftp.fh-rosenheim.de/pub/mirror/cert.dfn/tools/audit/logsurfer/ \ ftp://ftp.tuwien.ac.at/infosys/security/dfn/tools/audit/logsurfer/ \ - ftp://ftp.uni-magdeburg.de/pub/mirror/ftp.cert.dfn.de/tools/audit/logsurfer/ \ + ftp://ftp.uni-magdeburg.de/pub/mirror/ftp.cert.dfn.de/tools/audit/logsurfer/ MAINTAINER= shanee@augusta.de diff --git a/misc/logsurfer+/files/patch-ac b/misc/logsurfer+/files/patch-ac new file mode 100644 index 000000000000..4bcb1e4a400a --- /dev/null +++ b/misc/logsurfer+/files/patch-ac @@ -0,0 +1,10 @@ +--- src/logsurfer.c.orig Mon Apr 8 10:15:53 1996 ++++ src/logsurfer.c Fri May 28 14:28:06 1999 +@@ -382,6 +382,7 @@ + (void) fprintf(stderr, "unable to allocate memory for logline_buffer\n"); + exit(99); + } ++ logline_buffer[0]='\0'; + + while ( (opt = getopt(argc, argv, "fc:d:l:p:r:s")) != EOF ) + switch(opt) { diff --git a/misc/logsurfer+/files/patch-ad b/misc/logsurfer+/files/patch-ad new file mode 100644 index 000000000000..b80977b07e2f --- /dev/null +++ b/misc/logsurfer+/files/patch-ad @@ -0,0 +1,10 @@ +--- src/readcf.c.orig Fri Feb 16 07:45:31 1996 ++++ src/readcf.c Fri May 28 14:28:07 1999 +@@ -112,6 +112,7 @@ + (void) fprintf(stderr, "memory problems reading configfile\n"); + return(1); + } ++ buffer[0]='\0'; + /* dito for one complete configline */ + cfline_size=1024; + if ( (cfline=(char *)malloc(cfline_size)) == NULL ) { diff --git a/misc/logsurfer/Makefile b/misc/logsurfer/Makefile index 05b641b51b81..8dd6f4a7ce43 100644 --- a/misc/logsurfer/Makefile +++ b/misc/logsurfer/Makefile @@ -3,14 +3,14 @@ # Date created: 28 Jul 1996 # Whom: shanee@augusta.de # -# $Id: Makefile,v 1.3 1998/02/06 19:07:05 fenner Exp $ +# $Id: Makefile,v 1.4 1998/10/04 22:41:22 steve Exp $ # DISTNAME= logsurfer-1.41 CATEGORIES= misc MASTER_SITES= ftp://ftp.fh-rosenheim.de/pub/mirror/cert.dfn/tools/audit/logsurfer/ \ ftp://ftp.tuwien.ac.at/infosys/security/dfn/tools/audit/logsurfer/ \ - ftp://ftp.uni-magdeburg.de/pub/mirror/ftp.cert.dfn.de/tools/audit/logsurfer/ \ + ftp://ftp.uni-magdeburg.de/pub/mirror/ftp.cert.dfn.de/tools/audit/logsurfer/ MAINTAINER= shanee@augusta.de diff --git a/misc/logsurfer/files/patch-ac b/misc/logsurfer/files/patch-ac new file mode 100644 index 000000000000..4bcb1e4a400a --- /dev/null +++ b/misc/logsurfer/files/patch-ac @@ -0,0 +1,10 @@ +--- src/logsurfer.c.orig Mon Apr 8 10:15:53 1996 ++++ src/logsurfer.c Fri May 28 14:28:06 1999 +@@ -382,6 +382,7 @@ + (void) fprintf(stderr, "unable to allocate memory for logline_buffer\n"); + exit(99); + } ++ logline_buffer[0]='\0'; + + while ( (opt = getopt(argc, argv, "fc:d:l:p:r:s")) != EOF ) + switch(opt) { diff --git a/misc/logsurfer/files/patch-ad b/misc/logsurfer/files/patch-ad new file mode 100644 index 000000000000..b80977b07e2f --- /dev/null +++ b/misc/logsurfer/files/patch-ad @@ -0,0 +1,10 @@ +--- src/readcf.c.orig Fri Feb 16 07:45:31 1996 ++++ src/readcf.c Fri May 28 14:28:07 1999 +@@ -112,6 +112,7 @@ + (void) fprintf(stderr, "memory problems reading configfile\n"); + return(1); + } ++ buffer[0]='\0'; + /* dito for one complete configline */ + cfline_size=1024; + if ( (cfline=(char *)malloc(cfline_size)) == NULL ) { |