From 517fe770e2b1c42b748092b03a6c1969bc63dcd9 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Mon, 26 Sep 2016 07:33:19 -0500 Subject: [PATCH] [libpng17] Changed bad CRC from 0x00000000 to 0xabadcc32 and bad ADLER32 from 0x00000000 to 0xabadad32 in badcrc.png and badadler.png, to make them recognizable in hex dumps. --- ANNOUNCE | 2 +- CHANGES | 2 +- tests/badadler.png | Bin 67 -> 67 bytes tests/badcrc.png | Bin 67 -> 67 bytes 4 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ANNOUNCE b/ANNOUNCE index 35eb15fef..39699aa27 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -1405,7 +1405,7 @@ Version 1.7.0beta84 [September 26, 2016] Changed PNG_ZLIB_VERNUM to ZLIB_VERNUM in pngrutil.c. If CRC handling of critical chunks has been set to PNG_CRC_QUIET_USE, ignore the ADLER32 checksum in the IDAT chunk as well as the chunk CRCs. - Warn about ADLER32 checksum mismatch instead of issuing a png_error(). + Issue png_benign_error() on ADLER32 checksum mismatch instead of png_error(). Add tests/badcrc.png and tests/badadler.png to tests/pngtest. Send comments/corrections/commendations to png-mng-implement at lists.sf.net diff --git a/CHANGES b/CHANGES index cfd473bc2..34c694847 100644 --- a/CHANGES +++ b/CHANGES @@ -5705,7 +5705,7 @@ Version 1.7.0beta84 [September 26, 2016] Changed PNG_ZLIB_VERNUM to ZLIB_VERNUM in pngrutil.c. If CRC handling of critical chunks has been set to PNG_CRC_QUIET_USE, ignore the ADLER32 checksum in the IDAT chunk as well as the chunk CRCs. - Warn about ADLER32 checksum mismatch instead of issuing a png_error(). + Issue png_benign_error() on ADLER32 checksum mismatch instead of png_error(). Add tests/badcrc.png and tests/badadler.png to tests/pngtest. Send comments/corrections/commendations to png-mng-implement at lists.sf.net diff --git a/tests/badadler.png b/tests/badadler.png index e3ade3d34f400b67e7fdf1dd6a57a209ea429108..2bcbcc926ab7fc7d62a840d19ab0cbb94987d432 100644 GIT binary patch delta 25 fcmZ>Eo}e$XdhJ>xKC#(17=Xaj)z4*}Q$iB}YUl_W delta 25 fcmZ>Eo}e$nz{J2XRjp?!0}yz+`njxgN@xNAM^*+p diff --git a/tests/badcrc.png b/tests/badcrc.png index 14a8439cecfa4539de4790fd2507c37cc3478451..45d02680454eb3e343a6cb1113fa1d50c18898b7 100644 GIT binary patch delta 21 bcmZ>Eo?tAndhHn_1|aZs^>bP0l+XkKNWKQ5 delta 21 WcmZ>Eo?tA%00o||elF{r5}E)eIRs1q