From 865e14fd322d2ab743fc2b7cc41786af055e059b Mon Sep 17 00:00:00 2001 From: John Bowler Date: Fri, 10 Aug 2012 08:05:53 -0500 Subject: [PATCH] [libpng16] Revised comments about info_ptr->signature, added CHANGES entry. --- ANNOUNCE | 1 + CHANGES | 1 + pnginfo.h | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/ANNOUNCE b/ANNOUNCE index 0c1ed9bfb..6d4892d9b 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -424,6 +424,7 @@ Version 1.6.0beta27 [August 10, 2012] on the read side. Insist on autotools 1.12.1 for git builds because there are security issues with 1.12 and insisting on anything less would allow 1.12 to be used. + Removed info_ptr->signature[8] from WRITE-only builds. Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CHANGES b/CHANGES index 9431b8264..ebab6a978 100644 --- a/CHANGES +++ b/CHANGES @@ -4175,6 +4175,7 @@ Version 1.6.0beta27 [August 10, 2012] on the read side. Insist on autotools 1.12.1 for git builds because there are security issues with 1.12 and insisting on anything less would allow 1.12 to be used. + Removed info_ptr->signature[8] from WRITE-only builds. Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/pnginfo.h b/pnginfo.h index 6bf179531..a1e7dbf3e 100644 --- a/pnginfo.h +++ b/pnginfo.h @@ -70,11 +70,15 @@ struct png_info_def png_byte filter_type; /* must be PNG_FILTER_TYPE_BASE (from IHDR) */ png_byte interlace_type; /* One of PNG_INTERLACE_NONE, PNG_INTERLACE_ADAM7 */ + /* The following are set by png_set_IHDR, called from the application on + * write, but the are never actually used by the write code. + */ png_byte channels; /* number of data channels per pixel (1, 2, 3, 4) */ png_byte pixel_depth; /* number of bits per pixel */ png_byte spare_byte; /* to align the data, and for future use */ #ifdef PNG_READ_SUPPORTED + /* This is never set during write */ png_byte signature[8]; /* magic bytes read by libpng from start of file */ #endif