diff options
| author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-02-03 13:11:10 +0100 |
|---|---|---|
| committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-02-03 13:11:10 +0100 |
| commit | 2fe7889912c9bb340f302a037585b7b1836ac94f (patch) | |
| tree | 5c3e4e5829f45dce46794ebc2681732738d689fe /examples/libpng_no_checksum | |
| parent | e2eedefc65bec1a04605f117a11ca8bdf9d80323 (diff) | |
| download | afl++-2fe7889912c9bb340f302a037585b7b1836ac94f.tar.gz | |
move custom and pythoon mutators examples into examples/
Diffstat (limited to 'examples/libpng_no_checksum')
| -rw-r--r-- | examples/libpng_no_checksum/libpng-nocrc.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/libpng_no_checksum/libpng-nocrc.patch b/examples/libpng_no_checksum/libpng-nocrc.patch new file mode 100644 index 00000000..0a3793a0 --- /dev/null +++ b/examples/libpng_no_checksum/libpng-nocrc.patch @@ -0,0 +1,15 @@ +--- pngrutil.c.orig 2014-06-12 03:35:16.000000000 +0200 ++++ pngrutil.c 2014-07-01 05:08:31.000000000 +0200 +@@ -268,7 +268,11 @@ + if (need_crc != 0) + { + crc = png_get_uint_32(crc_bytes); +- return ((int)(crc != png_ptr->crc)); ++ ++ if (crc != png_ptr->crc) ++ fprintf(stderr, "NOTE: CRC in the file is 0x%08x, change to 0x%08x\n", crc, png_ptr->crc); ++ ++ return ((int)(1 != 1)); + } + + else |
