--- fuzz-0.6.orig/fuzz.c +++ fuzz-0.6/fuzz.c @@ -387,10 +387,16 @@ 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(); @@ -812,7 +818,7 @@ execv(progname,arguments); write(cpy_stderr,"Exec failed.\n",strlen("Exec failed.\n")); - write(cpy_stderr,sys_errlist[errno],strlen(sys_errlist[errno])); + write(cpy_stderr,strerror(errno),strlen(strerror(errno))); exit(CANT_FORK_EXIT); } --- fuzz-0.6.orig/debian/changelog +++ fuzz-0.6/debian/changelog @@ -0,0 +1,85 @@ +fuzz (0.6-7.3) unstable; urgency=low + + * NMU. + * debian/control: Remove unnecessary autotool dependencies. (Closes: + #376439) + + -- Eric Dorland Sat, 19 Aug 2006 02:38:04 -0400 + +fuzz (0.6-7.2) unstable; urgency=low + + * NMU + * Change dependency to libreadline5-dev (Closes: #326362) + + -- Don Armstrong Tue, 3 Jan 2006 01:13:39 -0800 + +fuzz (0.6-7.1) unstable; urgency=high + + * Non-maintainer upload + * Security patch ported from stable + - Matt Zimmerman Sun, 4 May 2003 20:32:10 -0400 + - Non-maintainer upload by the Security Team + - Create temporary file securely using mkstemp (Closes: #183047) + + -- David Schleef Thu, 15 May 2003 11:57:27 -0700 + +fuzz (0.6-7) unstable; urgency=low + + * Upgrade to standards-version 3.5.7. + * Fix Build-Depends for sh (which doesn't have libreadline4-dev). + + -- Thomas Smith Sat, 21 Sep 2002 12:33:17 -0500 + +fuzz (0.6-6) unstable; urgency=low + + * Fix speling mistake in description (Zimmerman Spelling Crusade) + (Closes: Bug#124653). + * Up standards-version to 3.5.6 + * Got rid of Emacs user settings at end of changelog file (how'd they get + there? I've only used vim...), fixing a lintian error. + + -- Thomas Smith Tue, 18 Dec 2001 20:53:24 -0500 + +fuzz (0.6-5) unstable; urgency=low + + * Honor DEB_BUILD_OPTIONS + * This is probably going to be the first fuzz in the official + archive. Closes: bug#80263. + + -- Thomas Smith Sat, 3 Mar 2001 17:02:42 -0500 + +fuzz (0.6-4) unstable; urgency=low + + * apply patch from Josip Rodin, my Application Manager. this: + - changes the description in control + - changes the rules file for simplicity and correctness + * add build-depends: libreadline4-dev so that package is built + consistently + * fixed CFLAGS so my earlier ugly hack to remove -g is unneeded. + + -- Thomas Smith Thu, 25 Jan 2001 17:12:58 -0500 + +fuzz (0.6-3) unstable; urgency=low + + * Got a sponsor. Thanks, Adrian! + * tried fixing build-depends (added autoconf and automake) + * removed -g flag from compile to comply with standards + * removed INSTALL from docs + * Close the wnpp bug (Closes: bug#80263) + + -- Thomas Smith Wed, 24 Jan 2001 17:42:48 -0500 + +fuzz (0.6-2) unstable; urgency=low + + * various cleanups in debian/. + * give pointer to a copy of the GPL in copyright. + + -- Thomas Smith Fri, 19 Jan 2001 22:14:51 -0500 + +fuzz (0.6-1) unstable; urgency=low + + * Initial Release. + * First .deb by Thomas Smith.. whoop dee doo + + -- Thomas Smith Sat, 23 Dec 2000 22:09:25 -0500 + --- fuzz-0.6.orig/debian/control +++ fuzz-0.6/debian/control @@ -0,0 +1,17 @@ +Source: fuzz +Section: devel +Priority: optional +Maintainer: Thomas Smith +Build-Depends: debhelper, libreadline5-dev | libreadline-dev +Standards-Version: 3.5.7 + +Package: fuzz +Architecture: any +Depends: ${shlibs:Depends} +Description: stress-test programs by giving them random input + The fuzz generator is designed to attack certain kinds of software and + expose one particular kind of bug common in software. This is the + situation where the programmer implicitly makes some assumptions about + the data stream that the program will be parsing. If the data stream + is substantially different then the program might not be able to deal + with it. --- fuzz-0.6.orig/debian/copyright +++ fuzz-0.6/debian/copyright @@ -0,0 +1,13 @@ +This package was debianized by Thomas Smith on +Sat, 23 Dec 2000 22:09:25 -0500. + +It was downloaded from http://download.sourceforge.net/fuzz/fuzz-0.6.tar.gz + +Upstream Author: Ben Woodard + +Copyright Ben Woodard & VA Linux Systems. +All rights reserved. +Licence: GPL +A copy of the GNU General Public License is available on Debian systems in +/usr/share/common-licenses/GPL + --- fuzz-0.6.orig/debian/rules +++ fuzz-0.6/debian/rules @@ -0,0 +1,88 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. +#modified by Thomas Smith + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=2 +CFLAGS = -Wall -g +CC = gcc +LDFLAGS = # none +INSTALL = install + +INSTALL = install + INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644 + INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755 +INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755 + INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755 + +ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) +INSTALL_PROGRAM += -s +endif + +export CFLAGS +export CC +export LDFLAGS +export INSTALL +export INSTALL_FILE +export INSTALL_PROGRAM +export INSTALL_SCRIPT +export INSTALL_DIR + + +config.status: configure + dh_testdir + ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + +build: build-stamp +build-stamp: config.status + dh_testdir + + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + + [ ! -f Makefile ] || $(MAKE) distclean + + dh_clean build-stamp configure-stamp files + +install: build + dh_testdir + dh_testroot + dh_clean -k + + $(MAKE) install prefix=$(CURDIR)/debian/fuzz/usr + + +# Build architecture-independent files here. +binary-indep: +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installmanpages + dh_installchangelogs ChangeLog + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- fuzz-0.6.orig/debian/fuzz.docs +++ fuzz-0.6/debian/fuzz.docs @@ -0,0 +1,3 @@ +AUTHORS +NEWS +README --- fuzz-0.6.orig/debian/watch +++ fuzz-0.6/debian/watch @@ -0,0 +1,2 @@ +http://download.sourceforge.net /fuzz/ fuzz-(.*)\.tar\.gz debian +