diff options
Diffstat (limited to 'app-forensics/zzuf/files')
3 files changed, 63 insertions, 0 deletions
diff --git a/app-forensics/zzuf/files/zzuf-0.15_autoconf-hardcoded-cflags.patch b/app-forensics/zzuf/files/zzuf-0.15_autoconf-hardcoded-cflags.patch new file mode 100644 index 000000000000..f8cbfa5c7642 --- /dev/null +++ b/app-forensics/zzuf/files/zzuf-0.15_autoconf-hardcoded-cflags.patch @@ -0,0 +1,11 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -39,8 +39,6 @@ + AC_MSG_RESULT($SONAME) + AC_DEFINE_UNQUOTED(SONAME, "$SONAME", [Define to the libzzuf full name]) + +-# Optimizations +-AC_TRY_CFLAGS(-g -O2, CFLAGS="${CFLAGS} -g -O2") + # Code qui fait des warnings == code de porc == deux baffes dans ta gueule + AC_TRY_CFLAGS(-Wall, CFLAGS="${CFLAGS} -Wall") + AC_TRY_CFLAGS(-W, CFLAGS="${CFLAGS} -W") diff --git a/app-forensics/zzuf/files/zzuf-0.15_implicit_functions.patch b/app-forensics/zzuf/files/zzuf-0.15_implicit_functions.patch new file mode 100644 index 000000000000..aa73a6f03d2b --- /dev/null +++ b/app-forensics/zzuf/files/zzuf-0.15_implicit_functions.patch @@ -0,0 +1,32 @@ +--- a/src/libc_fcns.h ++++ b/src/libc_fcns.h +@@ -0,0 +1,8 @@ ++#ifndef _ZZUF_LIBC_FCNS_H ++#define _ZZUF_LIBC_FCNS_H ++ ++/* Prototypes for internal libc functions zzuf hooks into */ ++extern int __fseeko64(FILE *fp, off64_t offset, int whence); ++extern int _IO_getc(FILE *__fp); ++ ++#endif +--- a/src/libzzuf/lib-stream.c ++++ b/src/libzzuf/lib-stream.c +@@ -57,6 +57,7 @@ + #include "debug.h" + #include "fuzz.h" + #include "fd.h" ++#include "libc_fcns.h" + + #if defined HAVE_FPOS64_T + # define FPOS64_T fpos64_t +--- a/src/zzat.c ++++ b/src/zzat.c +@@ -51,6 +51,8 @@ + + #include "util/getopt.h" + ++#include "libc_fcns.h" ++ + static int run(char const *sequence, char const *file); + static void output(char const *buf, size_t len); + diff --git a/app-forensics/zzuf/files/zzuf-0.15_use-after-free.patch b/app-forensics/zzuf/files/zzuf-0.15_use-after-free.patch new file mode 100644 index 000000000000..3de95d91608c --- /dev/null +++ b/app-forensics/zzuf/files/zzuf-0.15_use-after-free.patch @@ -0,0 +1,20 @@ +--- a/test/zzone.c ++++ b/test/zzone.c +@@ -64,14 +64,14 @@ + last++; + } + +- free(buf); +- free(tmp); +- + size_t total = 0; + for (size_t i = last; i < size; i++) + total += countzeroes(buf[i]); + printf("%li\n", (long)total); + ++ free(buf); ++ free(tmp); ++ + return EXIT_SUCCESS; + } + |