diff --git a/security/fuzz/Makefile b/security/fuzz/Makefile index 843deb300b8b..3b99b4f85cb0 100644 --- a/security/fuzz/Makefile +++ b/security/fuzz/Makefile @@ -1,17 +1,16 @@ PORTNAME= fuzz PORTVERSION= 0.6 PORTREVISION= 2 CATEGORIES= security MASTER_SITES= SF -MAINTAINER= ports@FreeBSD.org +MAINTAINER= tiago.gasiba@gmail.com COMMENT= Tool for testing software by bombarding the program with random data WWW= https://fuzz.sourceforge.net/ GNU_CONFIGURE= yes -GNU_CONFIGURE_MANPREFIX=${PREFIX}/share PLIST_FILES= bin/fuzz \ share/man/man1/fuzz.1.gz .include diff --git a/security/fuzz/files/patch-fuzz.c b/security/fuzz/files/patch-fuzz.c index ba229134bd9d..a1055df8ef29 100644 --- a/security/fuzz/files/patch-fuzz.c +++ b/security/fuzz/files/patch-fuzz.c @@ -1,20 +1,20 @@ ---- fuzz.c.orig Mon May 12 01:49:39 2003 -+++ fuzz.c Mon May 12 01:53:44 2003 -@@ -387,10 +387,16 @@ +--- fuzz.c.orig 2000-08-09 14:48:26 UTC ++++ fuzz.c +@@ -387,10 +387,16 @@ int main(int argc, char **argv){ int progpipe[2],status; char sendnewline=0; unsigned long curchar=0,linelen=0; + int fd; // finish setting up files if(!execute_filename){ - snprintf(outfilename,MAXPATH,"/tmp%s.%lu",strrchr(progname,'/'),runs); + snprintf(outfilename,MAXPATH,"/tmp%s.%lu.XXXXXX",strrchr(progname,'/'),runs); + if ((fd=mkstemp(outfilename)) < 0) { + perror("Unable to create temporary file"); + abort(); + } + close(fd); if((outfile=fopen(outfilename,"w"))==NULL){ fprintf(stderr,"Can't fopen outfile.\n"); abort();