mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Merge with libpng-1.6.14beta07
Removed "option READ_COMPRESSED_TEXT enables READ_TEXT" from pnglibconf.dfa, to make it possible to configure a libpng that supports iCCP but not TEXT. Removed "option WRITE_COMPRESSED_TEXT enables WRITE_TEXT" from pnglibconf.dfa Only mark text chunks as written after successfully writing them.
This commit is contained in:
parent
c7e743d385
commit
7974d60f54
8
ANNOUNCE
8
ANNOUNCE
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Libpng 1.7.0beta38 - October 4, 2014
|
Libpng 1.7.0beta38 - October 5, 2014
|
||||||
|
|
||||||
This is not intended to be a public release. It will be replaced
|
This is not intended to be a public release. It will be replaced
|
||||||
within a few weeks by a public version or by another test version.
|
within a few weeks by a public version or by another test version.
|
||||||
@ -602,7 +602,7 @@ Version 1.7.0beta36 [September 27, 2014]
|
|||||||
Version 1.7.0beta37 [September 28, 2014]
|
Version 1.7.0beta37 [September 28, 2014]
|
||||||
Merged scripts/*, pngvalid.c and pngfix.c with libpng-1.6.14beta04.
|
Merged scripts/*, pngvalid.c and pngfix.c with libpng-1.6.14beta04.
|
||||||
|
|
||||||
Version 1.7.0beta38 [October 4, 2014]
|
Version 1.7.0beta38 [October 5, 2014]
|
||||||
Added "option READ_iCCP enables READ_COMPRESSED_TEXT" to pnglibconf.dfa
|
Added "option READ_iCCP enables READ_COMPRESSED_TEXT" to pnglibconf.dfa
|
||||||
Removed unused "text_len" parameter from private function png_write_zTXt().
|
Removed unused "text_len" parameter from private function png_write_zTXt().
|
||||||
Conditionally compile some code in png_deflate_claim(), when
|
Conditionally compile some code in png_deflate_claim(), when
|
||||||
@ -610,6 +610,10 @@ Version 1.7.0beta38 [October 4, 2014]
|
|||||||
Replaced repeated code in pngpread.c with PNG_PUSH_SAVE_BUFFER_IF_FULL.
|
Replaced repeated code in pngpread.c with PNG_PUSH_SAVE_BUFFER_IF_FULL.
|
||||||
Added "chunk iTXt enables TEXT" and "chunk zTXt enables TEXT"
|
Added "chunk iTXt enables TEXT" and "chunk zTXt enables TEXT"
|
||||||
to pnglibconf.dfa.
|
to pnglibconf.dfa.
|
||||||
|
Removed "option READ_COMPRESSED_TEXT enables READ_TEXT" from pnglibconf.dfa,
|
||||||
|
to make it possible to configure a libpng that supports iCCP but not TEXT.
|
||||||
|
Removed "option WRITE_COMPRESSED_TEXT enables WRITE_TEXT" from pnglibconf.dfa
|
||||||
|
Only mark text chunks as written after successfully writing them.
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
|||||||
6
CHANGES
6
CHANGES
@ -4891,7 +4891,7 @@ Version 1.7.0beta36 [September 27, 2014]
|
|||||||
Version 1.7.0beta37 [September 28, 2014]
|
Version 1.7.0beta37 [September 28, 2014]
|
||||||
Merged scripts/*, pngvalid.c and pngfix.c with libpng-1.6.14beta04.
|
Merged scripts/*, pngvalid.c and pngfix.c with libpng-1.6.14beta04.
|
||||||
|
|
||||||
Version 1.7.0beta38 [October 4, 2014]
|
Version 1.7.0beta38 [October 5, 2014]
|
||||||
Added "option READ_iCCP enables READ_COMPRESSED_TEXT" to pnglibconf.dfa
|
Added "option READ_iCCP enables READ_COMPRESSED_TEXT" to pnglibconf.dfa
|
||||||
Removed unused "text_len" parameter from private function png_write_zTXt().
|
Removed unused "text_len" parameter from private function png_write_zTXt().
|
||||||
Conditionally compile some code in png_deflate_claim(), when
|
Conditionally compile some code in png_deflate_claim(), when
|
||||||
@ -4899,6 +4899,10 @@ Version 1.7.0beta38 [October 4, 2014]
|
|||||||
Replaced repeated code in pngpread.c with PNG_PUSH_SAVE_BUFFER_IF_FULL.
|
Replaced repeated code in pngpread.c with PNG_PUSH_SAVE_BUFFER_IF_FULL.
|
||||||
Added "chunk iTXt enables TEXT" and "chunk zTXt enables TEXT"
|
Added "chunk iTXt enables TEXT" and "chunk zTXt enables TEXT"
|
||||||
to pnglibconf.dfa.
|
to pnglibconf.dfa.
|
||||||
|
Removed "option READ_COMPRESSED_TEXT enables READ_TEXT" from pnglibconf.dfa,
|
||||||
|
to make it possible to configure a libpng that supports iCCP but not TEXT.
|
||||||
|
Removed "option WRITE_COMPRESSED_TEXT enables WRITE_TEXT" from pnglibconf.dfa
|
||||||
|
Only mark text chunks as written after successfully writing them.
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
|||||||
@ -932,7 +932,7 @@ void write_png(char *file_name /* , ... other image information ... */)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Once we write out the header, the compression type on the text
|
/* Once we write out the header, the compression type on the text
|
||||||
* chunks gets changed to PNG_TEXT_COMPRESSION_NONE_WR or
|
* chunk gets changed to PNG_TEXT_COMPRESSION_NONE_WR or
|
||||||
* PNG_TEXT_COMPRESSION_zTXt_WR, so it doesn't get written out again
|
* PNG_TEXT_COMPRESSION_zTXt_WR, so it doesn't get written out again
|
||||||
* at the end.
|
* at the end.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -396,6 +396,7 @@ png_read_row(png_structrp png_ptr, png_bytep row, png_bytep dsp_row)
|
|||||||
row_info.pixel_depth = png_ptr->pixel_depth;
|
row_info.pixel_depth = png_ptr->pixel_depth;
|
||||||
row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width);
|
row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width);
|
||||||
|
|
||||||
|
#ifdef PNG_WARNINGS_SUPPORTED
|
||||||
if (png_ptr->row_number == 0 && png_ptr->pass == 0)
|
if (png_ptr->row_number == 0 && png_ptr->pass == 0)
|
||||||
{
|
{
|
||||||
/* Check for transforms that have been set but were defined out */
|
/* Check for transforms that have been set but were defined out */
|
||||||
@ -435,6 +436,7 @@ png_read_row(png_structrp png_ptr, png_bytep row, png_bytep dsp_row)
|
|||||||
png_warning(png_ptr, "PNG_READ_SWAP_SUPPORTED is not defined");
|
png_warning(png_ptr, "PNG_READ_SWAP_SUPPORTED is not defined");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif /* PNG_WARNINGS_SUPPORTED */
|
||||||
|
|
||||||
#ifdef PNG_READ_INTERLACING_SUPPORTED
|
#ifdef PNG_READ_INTERLACING_SUPPORTED
|
||||||
/* If interlaced and we do not need a new row, combine row and return.
|
/* If interlaced and we do not need a new row, combine row and return.
|
||||||
|
|||||||
13
pngwrite.c
13
pngwrite.c
@ -297,11 +297,14 @@ png_write_info(png_structrp png_ptr, png_const_inforp info_ptr)
|
|||||||
info_ptr->text[i].lang,
|
info_ptr->text[i].lang,
|
||||||
info_ptr->text[i].lang_key,
|
info_ptr->text[i].lang_key,
|
||||||
info_ptr->text[i].text);
|
info_ptr->text[i].text);
|
||||||
|
/* Mark this chunk as written */
|
||||||
|
if (info_ptr->text[i].compression == PNG_TEXT_COMPRESSION_NONE)
|
||||||
|
info_ptr->text[i].compression = PNG_TEXT_COMPRESSION_NONE_WR;
|
||||||
|
else
|
||||||
|
info_ptr->text[i].compression = PNG_TEXT_COMPRESSION_zTXt_WR;
|
||||||
#else
|
#else
|
||||||
png_warning(png_ptr, "Unable to write international text");
|
png_warning(png_ptr, "Unable to write international text");
|
||||||
#endif
|
#endif
|
||||||
/* Mark this chunk as written */
|
|
||||||
info_ptr->text[i].compression = PNG_TEXT_COMPRESSION_NONE_WR;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we want a compressed text chunk */
|
/* If we want a compressed text chunk */
|
||||||
@ -311,11 +314,11 @@ png_write_info(png_structrp png_ptr, png_const_inforp info_ptr)
|
|||||||
/* Write compressed chunk */
|
/* Write compressed chunk */
|
||||||
png_write_zTXt(png_ptr, info_ptr->text[i].key,
|
png_write_zTXt(png_ptr, info_ptr->text[i].key,
|
||||||
info_ptr->text[i].text, info_ptr->text[i].compression);
|
info_ptr->text[i].text, info_ptr->text[i].compression);
|
||||||
|
/* Mark this chunk as written */
|
||||||
|
info_ptr->text[i].compression = PNG_TEXT_COMPRESSION_zTXt_WR;
|
||||||
#else
|
#else
|
||||||
png_warning(png_ptr, "Unable to write compressed text");
|
png_warning(png_ptr, "Unable to write compressed text");
|
||||||
#endif
|
#endif
|
||||||
/* Mark this chunk as written */
|
|
||||||
info_ptr->text[i].compression = PNG_TEXT_COMPRESSION_zTXt_WR;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (info_ptr->text[i].compression == PNG_TEXT_COMPRESSION_NONE)
|
else if (info_ptr->text[i].compression == PNG_TEXT_COMPRESSION_NONE)
|
||||||
|
|||||||
@ -381,7 +381,7 @@ option IO_STATE
|
|||||||
|
|
||||||
option USER_LIMITS requires READ
|
option USER_LIMITS requires READ
|
||||||
|
|
||||||
# If the following settings are *not* set libpng will not limit the size of
|
# If these settings are *not* set libpng will not limit the size of
|
||||||
# images or the size of data in ancilliary chunks. This does lead to
|
# images or the size of data in ancilliary chunks. This does lead to
|
||||||
# security issues if PNG files come from untrusted sources. Settings have the
|
# security issues if PNG files come from untrusted sources. Settings have the
|
||||||
# following interpretations:
|
# following interpretations:
|
||||||
@ -395,8 +395,8 @@ option USER_LIMITS requires READ
|
|||||||
# USER_CHUNK_CACHE_MAX limit
|
# USER_CHUNK_CACHE_MAX limit
|
||||||
setting USER_WIDTH_MAX
|
setting USER_WIDTH_MAX
|
||||||
setting USER_HEIGHT_MAX
|
setting USER_HEIGHT_MAX
|
||||||
setting USER_CHUNK_MALLOC_MAX
|
|
||||||
setting USER_CHUNK_CACHE_MAX
|
setting USER_CHUNK_CACHE_MAX
|
||||||
|
setting USER_CHUNK_MALLOC_MAX
|
||||||
|
|
||||||
# To default all these settings to values that are large but probably
|
# To default all these settings to values that are large but probably
|
||||||
# safe turn the SAFE_LIMITS option on; this will cause the value in
|
# safe turn the SAFE_LIMITS option on; this will cause the value in
|
||||||
@ -406,7 +406,7 @@ option SAFE_LIMITS enables USER_LIMITS disabled
|
|||||||
= SAFE_LIMITS SAFE_LIMITS
|
= SAFE_LIMITS SAFE_LIMITS
|
||||||
|
|
||||||
# If this option is enabled APIs to set the above limits at run time are added;
|
# If this option is enabled APIs to set the above limits at run time are added;
|
||||||
# without these the hardwired (compile time) limits will be used.
|
# without this the hardwired (compile time) limits will be used.
|
||||||
option SET_USER_LIMITS requires USER_LIMITS
|
option SET_USER_LIMITS requires USER_LIMITS
|
||||||
|
|
||||||
# All of the following options relate to code capabilities for
|
# All of the following options relate to code capabilities for
|
||||||
@ -847,7 +847,6 @@ option WRITE_COMPRESSED_TEXT disabled
|
|||||||
option WRITE_iCCP enables WRITE_COMPRESSED_TEXT
|
option WRITE_iCCP enables WRITE_COMPRESSED_TEXT
|
||||||
option WRITE_iTXt enables WRITE_COMPRESSED_TEXT
|
option WRITE_iTXt enables WRITE_COMPRESSED_TEXT
|
||||||
option WRITE_zTXt enables WRITE_COMPRESSED_TEXT
|
option WRITE_zTXt enables WRITE_COMPRESSED_TEXT
|
||||||
option WRITE_COMPRESSED_TEXT enables WRITE_TEXT
|
|
||||||
|
|
||||||
# Turn this off to disable png_read_png() and png_write_png() and
|
# Turn this off to disable png_read_png() and png_write_png() and
|
||||||
# leave the row_pointers member out of the info structure.
|
# leave the row_pointers member out of the info structure.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user