VirtualBox

source: vbox/trunk/src/libs/libpng-1.2.54/CHANGES@ 69582

Last change on this file since 69582 was 58796, checked in by vboxsync, 9 years ago

libpng 1.2.54 unmodified

  • Property svn:eol-style set to native
File size: 136.7 KB
Line 
1#if 0
2CHANGES - changes for libpng
3
4version 0.1 [March 29, 1995]
5 initial beta release
6
7version 0.2 [April 1, 1995]
8 added reader into png.h
9 fixed small problems in stub file
10
11version 0.3 [April 8, 1995]
12 added pull reader
13 split up pngwrite.c to several files
14 added pnglib.txt
15 added example.c
16 cleaned up writer, adding a few new transformations
17 fixed some bugs in writer
18 interfaced with zlib 0.5
19 added K&R support
20 added check for 64 KB blocks for 16 bit machines
21
22version 0.4 [April 26, 1995]
23 cleaned up code and commented code
24 simplified time handling into png_time
25 created png_color_16 and png_color_8 to handle color needs
26 cleaned up color type defines
27 fixed various bugs
28 made various names more consistent
29 interfaced with zlib 0.71
30 cleaned up zTXt reader and writer (using zlib's Reset functions)
31 split transformations into pngrtran.c and pngwtran.c
32
33version 0.5 [April 30, 1995]
34 interfaced with zlib 0.8
35 fixed many reading and writing bugs
36 saved using 3 spaces instead of tabs
37
38version 0.6 [May 1, 1995]
39 first beta release
40 added png_large_malloc() and png_large_free()
41 added png_size_t
42 cleaned up some compiler warnings
43 added png_start_read_image()
44
45version 0.7 [June 24, 1995]
46 cleaned up lots of bugs
47 finished dithering and other stuff
48 added test program
49 changed name from pnglib to libpng
50
51version 0.71 [June 26, 1995]
52 changed pngtest.png for zlib 0.93
53 fixed error in libpng.txt and example.c
54
55version 0.8 [August 20, 1995]
56 cleaned up some bugs
57 added png_set_filler()
58 split up pngstub.c into pngmem.c, pngio.c, and pngerror.c
59 added #define's to remove unwanted code
60 moved png_info_init() to png.c
61 added old_size into png_realloc()
62 added functions to manually set filtering and compression info
63 changed compression parameters based on image type
64 optimized filter selection code
65 added version info
66 changed external functions passing floats to doubles (k&r problems?)
67 put all the configurable stuff in pngconf.h
68 enabled png_set_shift to work with paletted images on read
69 added png_read_update_info() - updates info structure with
70 transformations
71
72version 0.81 [August, 1995]
73 incorporated Tim Wegner's medium model code (thanks, Tim)
74
75version 0.82 [September, 1995]
76 [unspecified changes]
77
78version 0.85 [December, 1995]
79 added more medium model code (almost everything's a far)
80 added i/o, error, and memory callback functions
81 fixed some bugs (16 bit, 4 bit interlaced, etc.)
82 added first run progressive reader (barely tested)
83
84version 0.86 [January, 1996]
85 fixed bugs
86 improved documentation
87
88version 0.87 [January, 1996]
89 fixed medium model bugs
90 fixed other bugs introduced in 0.85 and 0.86
91 added some minor documentation
92
93version 0.88 [January, 1996]
94 fixed progressive bugs
95 replaced tabs with spaces
96 cleaned up documentation
97 added callbacks for read/write and warning/error functions
98
99version 0.89 [July, 1996]
100 added new initialization API to make libpng work better with shared libs
101 we now have png_create_read_struct(), png_create_write_struct(),
102 png_create_info_struct(), png_destroy_read_struct(), and
103 png_destroy_write_struct() instead of the separate calls to
104 malloc and png_read_init(), png_info_init(), and png_write_init()
105 changed warning/error callback functions to fix bug - this means you
106 should use the new initialization API if you were using the old
107 png_set_message_fn() calls, and that the old API no longer exists
108 so that people are aware that they need to change their code
109 changed filter selection API to allow selection of multiple filters
110 since it didn't work in previous versions of libpng anyways
111 optimized filter selection code
112 fixed png_set_background() to allow using an arbitrary RGB color for
113 paletted images
114 fixed gamma and background correction for paletted images, so
115 png_correct_palette is not needed unless you are correcting an
116 external palette (you will need to #define PNG_CORRECT_PALETTE_SUPPORTED
117 in pngconf.h) - if nobody uses this, it may disappear in the future.
118 fixed bug with Borland 64K memory allocation (Alexander Lehmann)
119 fixed bug in interlace handling (Smarasderagd, I think)
120 added more error checking for writing and image to reduce invalid files
121 separated read and write functions so that they won't both be linked
122 into a binary when only reading or writing functionality is used
123 new pngtest image also has interlacing and zTXt
124 updated documentation to reflect new API
125
126version 0.90 [January, 1997]
127 made CRC errors/warnings on critical and ancillary chunks configurable
128 libpng will use the zlib CRC routines by (compile-time) default
129 changed DOS small/medium model memory support - needs zlib 1.04 (Tim Wegner)
130 added external C++ wrapper statements to png.h (Gilles Dauphin)
131 allow PNG file to be read when some or all of file signature has already
132 been read from the beginning of the stream. ****This affects the size
133 of info_struct and invalidates all programs that use a shared libpng****
134 fixed png_filler() declarations
135 fixed? background color conversions
136 fixed order of error function pointers to match documentation
137 current chunk name is now available in png_struct to reduce the number
138 of nearly identical error messages (will simplify multi-lingual
139 support when available)
140 try to get ready for unknown-chunk callback functions:
141 - previously read critical chunks are flagged, so the chunk handling
142 routines can determine if the chunk is in the right place
143 - all chunk handling routines have the same prototypes, so we will
144 be able to handle all chunks via a callback mechanism
145 try to fix Linux "setjmp" buffer size problems
146 removed png_large_malloc, png_large_free, and png_realloc functions.
147
148version 0.95 [March, 1997]
149 fixed bug in pngwutil.c allocating "up_row" twice and "avg_row" never
150 fixed bug in PNG file signature compares when start != 0
151 changed parameter type of png_set_filler(...filler...) from png_byte
152 to png_uint_32
153 added test for MACOS to ensure that both math.h and fp.h are not #included
154 added macros for libpng to be compiled as a Windows DLL (Andreas Kupries)
155 added "packswap" transformation, which changes the endianness of
156 packed-pixel bytes (Kevin Bracey)
157 added "strip_alpha" transformation, which removes the alpha channel of
158 input images without using it (not necessarily a good idea)
159 added "swap_alpha" transformation, which puts the alpha channel in front
160 of the color bytes instead of after
161 removed all implicit variable tests which assume NULL == 0 (I think)
162 changed several variables to "png_size_t" to show 16/32-bit limitations
163 added new pCAL chunk read/write support
164 added experimental filter selection weighting (Greg Roelofs)
165 removed old png_set_rgbx() and png_set_xrgb() functions that have been
166 obsolete for about 2 years now (use png_set_filler() instead)
167 added macros to read 16- and 32-bit ints directly from buffer, to be
168 used only on those systems that support it (namely PowerPC and 680x0)
169 With some testing, this may become the default for MACOS/PPC systems.
170 only calculate CRC on data if we are going to use it
171 added macros for zTXt compression type PNG_zTXt_COMPRESSION_???
172 added macros for simple libpng debugging output selectable at compile time
173 removed PNG_READ_END_MODE in progressive reader (Smarasderagd)
174 more description of info_struct in libpng.txt and png.h
175 more instructions in example.c
176 more chunk types tested in pngtest.c
177 renamed pngrcb.c to pngset.c, and all png_read_<chunk> functions to be
178 png_set_<chunk>. We now have corresponding png_get_<chunk>
179 functions in pngget.c to get information in info_ptr. This isolates
180 the application from the internal organization of png_info_struct
181 (good for shared library implementations).
182
183version 0.96 [May, 1997]
184 fixed serious bug with < 8bpp images introduced in 0.95
185 fixed 256-color transparency bug (Greg Roelofs)
186 fixed up documentation (Greg Roelofs, Laszlo Nyul)
187 fixed "error" in pngconf.h for Linux setjmp() behaviour
188 fixed DOS medium model support (Tim Wegner)
189 fixed png_check_keyword() for case with error in static string text
190 added read of CRC after IEND chunk for embedded PNGs (Laszlo Nyul)
191 added typecasts to quiet compiler errors
192 added more debugging info
193
194version 0.97 [January, 1998]
195 removed PNG_USE_OWN_CRC capability
196 relocated png_set_crc_action from pngrutil.c to pngrtran.c
197 fixed typecasts of "new_key", etc. (Andreas Dilger)
198 added RFC 1152 [sic] date support
199 fixed bug in gamma handling of 4-bit grayscale
200 added 2-bit grayscale gamma handling (Glenn R-P)
201 added more typecasts. 65536L becomes (png_uint_32)65536L, etc. (Glenn R-P)
202 minor corrections in libpng.txt
203 added simple sRGB support (Glenn R-P)
204 easier conditional compiling, e.g. define PNG_READ/WRITE_NOT_FULLY_SUPPORTED;
205 all configurable options can be selected from command-line instead
206 of having to edit pngconf.h (Glenn R-P)
207 fixed memory leak in pngwrite.c (free info_ptr->text) (Glenn R-P)
208 added more conditions for png_do_background, to avoid changing
209 black pixels to background when a background is supplied and
210 no pixels are transparent
211 repaired PNG_NO_STDIO behaviour
212 tested NODIV support and made it default behaviour (Greg Roelofs)
213 added "-m" option and PNGTEST_DEBUG_MEMORY to pngtest (John Bowler)
214 regularized version numbering scheme and bumped shared-library major
215 version number to 2 to avoid problems with libpng 0.89 apps (Greg Roelofs)
216
217version 0.98 [January, 1998]
218 cleaned up some typos in libpng.txt and in code documentation
219 fixed memory leaks in pCAL chunk processing (Glenn R-P and John Bowler)
220 cosmetic change "display_gamma" to "screen_gamma" in pngrtran.c
221 changed recommendation about file_gamma for PC images to .51 from .45,
222 in example.c and libpng.txt, added comments to distinguish between
223 screen_gamma, viewing_gamma, and display_gamma.
224 changed all references to RFC1152 to read RFC1123 and changed the
225 PNG_TIME_RFC1152_SUPPORTED macro to PNG_TIME_RFC1123_SUPPORTED
226 added png_invert_alpha capability (Glenn R-P -- suggestion by Jon Vincent)
227 changed srgb_intent from png_byte to int to avoid compiler bugs
228
229version 0.99 [January 30, 1998]
230 free info_ptr->text instead of end_info_ptr->text in pngread.c (John Bowler)
231 fixed a longstanding "packswap" bug in pngtrans.c
232 fixed some inconsistencies in pngconf.h that prevented compiling with
233 PNG_READ_GAMMA_SUPPORTED and PNG_READ_hIST_SUPPORTED undefined
234 fixed some typos and made other minor rearrangement of libpng.txt (Andreas)
235 changed recommendation about file_gamma for PC images to .50 from .51 in
236 example.c and libpng.txt, and changed file_gamma for sRGB images to .45
237 added a number of functions to access information from the png structure
238 png_get_image_height(), etc. (Glenn R-P, suggestion by Brad Pettit)
239 added TARGET_MACOS similar to zlib-1.0.8
240 define PNG_ALWAYS_EXTERN when __MWERKS__ && WIN32 are defined
241 added type casting to all png_malloc() function calls
242version 0.99a [January 31, 1998]
243 Added type casts and parentheses to all returns that return a value.(Tim W.)
244version 0.99b [February 4, 1998]
245 Added type cast png_uint_32 on malloc function calls where needed.
246 Changed type of num_hist from png_uint_32 to int (same as num_palette).
247 Added checks for rowbytes overflow, in case png_size_t is less than 32 bits.
248 Renamed makefile.elf to makefile.lnx.
249version 0.99c [February 7, 1998]
250 More type casting. Removed erroneous overflow test in pngmem.c.
251 Added png_buffered_memcpy() and png_buffered_memset(), apply them to rowbytes.
252 Added UNIX manual pages libpng.3 (incorporating libpng.txt) and png.5.
253version 0.99d [February 11, 1998]
254 Renamed "far_to_near()" "png_far_to_near()"
255 Revised libpng.3
256 Version 99c "buffered" operations didn't work as intended. Replaced them
257 with png_memcpy_check() and png_memset_check().
258 Added many "if (png_ptr == NULL) return" to quell compiler warnings about
259 unused png_ptr, mostly in pngget.c and pngset.c.
260 Check for overlength tRNS chunk present when indexed-color PLTE is read.
261 Cleaned up spelling errors in libpng.3/libpng.txt
262 Corrected a problem with png_get_tRNS() which returned undefined trans array
263version 0.99e [February 28, 1998]
264 Corrected png_get_tRNS() again.
265 Add parentheses for easier reading of pngget.c, fixed "||" should be "&&".
266 Touched up example.c to make more of it compileable, although the entire
267 file still can't be compiled (Willem van Schaik)
268 Fixed a bug in png_do_shift() (Bryan Tsai)
269 Added a space in png.h prototype for png_write_chunk_start()
270 Replaced pngtest.png with one created with zlib 1.1.1
271 Changed pngtest to report PASS even when file size is different (Jean-loup G.)
272 Corrected some logic errors in png_do_invert_alpha() (Chris Patterson)
273version 0.99f [March 5, 1998]
274 Corrected a bug in pngpread() introduced in version 99c (Kevin Bracey)
275 Moved makefiles into a "scripts" directory, and added INSTALL instruction file
276 Added makefile.os2 and pngos2.def (A. Zabolotny) and makefile.s2x (W. Sebok)
277 Added pointers to "note on libpng versions" in makefile.lnx and README
278 Added row callback feature when reading and writing nonprogressive rows
279 and added a test of this feature in pngtest.c
280 Added user transform callbacks, with test of the feature in pngtest.c
281version 0.99g [March 6, 1998, morning]
282 Minor changes to pngtest.c to suppress compiler warnings.
283 Removed "beta" language from documentation.
284version 0.99h [March 6, 1998, evening]
285 Minor changes to previous minor changes to pngtest.c
286 Changed PNG_READ_NOT_FULLY_SUPPORTED to PNG_READ_TRANSFORMS_NOT_SUPPORTED
287 and added PNG_PROGRESSIVE_READ_NOT_SUPPORTED macro
288 Added user transform capability
289
290version 1.00 [March 7, 1998]
291 Changed several typedefs in pngrutil.c
292 Added makefile.wat (Pawel Mrochen), updated makefile.tc3 (Willem van Schaik)
293 replaced "while(1)" with "for(;;)"
294 added PNGARG() to prototypes in pngtest.c and removed some prototypes
295 updated some of the makefiles (Tom Lane)
296 changed some typedefs (s_start, etc.) in pngrutil.c
297 fixed dimensions of "short_months" array in pngwrite.c
298 Replaced ansi2knr.c with the one from jpeg-v6
299
300version 1.0.0 [March 8, 1998]
301 Changed name from 1.00 to 1.0.0 (Adam Costello)
302 Added smakefile.ppc (with SCOPTIONS.ppc) for Amiga PPC (Andreas Kleinert)
303version 1.0.0a [March 9, 1998]
304 Fixed three bugs in pngrtran.c to make gamma+background handling consistent
305 (Greg Roelofs)
306 Changed format of the PNG_LIBPNG_VER integer to xyyzz instead of xyz
307 for major, minor, and bugfix releases. This is 10001. (Adam Costello,
308 Tom Lane)
309 Make months range from 1-12 in png_convert_to_rfc1123
310version 1.0.0b [March 13, 1998]
311 Quieted compiler complaints about two empty "for" loops in pngrutil.c
312 Minor changes to makefile.s2x
313 Removed #ifdef/#endif around a png_free() in pngread.c
314
315version 1.0.1 [March 14, 1998]
316 Changed makefile.s2x to reduce security risk of using a relative pathname
317 Fixed some typos in the documentation (Greg).
318 Fixed a problem with value of "channels" returned by png_read_update_info()
319version 1.0.1a [April 21, 1998]
320 Optimized Paeth calculations by replacing abs() function calls with intrinsics
321 plus other loop optimizations. Improves avg decoding speed by about 20%.
322 Commented out i386istic "align" compiler flags in makefile.lnx.
323 Reduced the default warning level in some makefiles, to make them consistent.
324 Removed references to IJG and JPEG in the ansi2knr.c copyright statement.
325 Fixed a bug in png_do_strip_filler with XXRRGGBB => RRGGBB transformation.
326 Added grayscale and 16-bit capability to png_do_read_filler().
327 Fixed a bug in pngset.c, introduced in version 0.99c, that sets rowbytes
328 too large when writing an image with bit_depth < 8 (Bob Dellaca).
329 Corrected some bugs in the experimental weighted filtering heuristics.
330 Moved a misplaced pngrutil code block that truncates tRNS if it has more
331 than num_palette entries -- test was done before num_palette was defined.
332 Fixed a png_convert_to_rfc1123() bug that converts day 31 to 0 (Steve Eddins).
333 Changed compiler flags in makefile.wat for better optimization (Pawel Mrochen).
334version 1.0.1b [May 2, 1998]
335 Relocated png_do_gray_to_rgb() within png_do_read_transformations() (Greg).
336 Relocated the png_composite macros from pngrtran.c to png.h (Greg).
337 Added makefile.sco (contributed by Mike Hopkirk).
338 Fixed two bugs (missing definitions of "istop") introduced in libpng-1.0.1a.
339 Fixed a bug in pngrtran.c that would set channels=5 under some circumstances.
340 More work on the Paeth-filtering, achieving imperceptible speedup (A Kleinert).
341 More work on loop optimization which may help when compiled with C++ compilers.
342 Added warnings when people try to use transforms they've defined out.
343 Collapsed 4 "i" and "c" loops into single "i" loops in pngrtran and pngwtran.
344 Revised paragraph about png_set_expand() in libpng.txt and libpng.3 (Greg)
345version 1.0.1c [May 11, 1998]
346 Fixed a bug in pngrtran.c (introduced in libpng-1.0.1a) where the masks for
347 filler bytes should have been 0xff instead of 0xf.
348 Added max_pixel_depth=32 in pngrutil.c when using FILLER with palette images.
349 Moved PNG_WRITE_WEIGHTED_FILTER_SUPPORTED and PNG_WRITE_FLUSH_SUPPORTED
350 out of the PNG_WRITE_TRANSFORMS_NOT_SUPPORTED block of pngconf.h
351 Added "PNG_NO_WRITE_TRANSFORMS" etc., as alternatives for *_NOT_SUPPORTED,
352 for consistency, in pngconf.h
353 Added individual "ifndef PNG_NO_[CAPABILITY]" in pngconf.h to make it easier
354 to remove unwanted capabilities via the compile line
355 Made some corrections to grammar (which, it's) in documentation (Greg).
356 Corrected example.c, use of row_pointers in png_write_image().
357version 1.0.1d [May 24, 1998]
358 Corrected several statements that used side effects illegally in pngrutil.c
359 and pngtrans.c, that were introduced in version 1.0.1b
360 Revised png_read_rows() to avoid repeated if-testing for NULL (A Kleinert)
361 More corrections to example.c, use of row_pointers in png_write_image()
362 and png_read_rows().
363 Added pngdll.mak and pngdef.pas to scripts directory, contributed by
364 Bob Dellaca, to make a png32bd.dll with Borland C++ 4.5
365 Fixed error in example.c with png_set_text: num_text is 3, not 2 (Guido V.)
366 Changed several loops from count-down to count-up, for consistency.
367version 1.0.1e [June 6, 1998]
368 Revised libpng.txt and libpng.3 description of png_set_read|write_fn(), and
369 added warnings when people try to set png_read_fn and png_write_fn in
370 the same structure.
371 Added a test such that png_do_gamma will be done when num_trans==0
372 for truecolor images that have defined a background. This corrects an
373 error that was introduced in libpng-0.90 that can cause gamma processing
374 to be skipped.
375 Added tests in png.h to include "trans" and "trans_values" in structures
376 when PNG_READ_BACKGROUND_SUPPORTED or PNG_READ_EXPAND_SUPPORTED is defined.
377 Add png_free(png_ptr->time_buffer) in png_destroy_read_struct()
378 Moved png_convert_to_rfc_1123() from pngwrite.c to png.c
379 Added capability for user-provided malloc_fn() and free_fn() functions,
380 and revised pngtest.c to demonstrate their use, replacing the
381 PNGTEST_DEBUG_MEM feature.
382 Added makefile.w32, for Microsoft C++ 4.0 and later (Tim Wegner).
383
384version 1.0.2 [June 14, 1998]
385 Fixed two bugs in makefile.bor .
386version 1.0.2a [December 30, 1998]
387 Replaced and extended code that was removed from png_set_filler() in 1.0.1a.
388 Fixed a bug in png_do_filler() that made it fail to write filler bytes in
389 the left-most pixel of each row (Kevin Bracey).
390 Changed "static pngcharp tIME_string" to "static char tIME_string[30]"
391 in pngtest.c (Duncan Simpson).
392 Fixed a bug in pngtest.c that caused pngtest to try to write a tIME chunk
393 even when no tIME chunk was present in the source file.
394 Fixed a problem in pngrutil.c: gray_to_rgb didn't always work with 16-bit.
395 Fixed a problem in png_read_push_finish_row(), which would not skip some
396 passes that it should skip, for images that are less than 3 pixels high.
397 Interchanged the order of calls to png_do_swap() and png_do_shift()
398 in pngwtran.c (John Cromer).
399 Added #ifdef PNG_DEBUG/#endif surrounding use of PNG_DEBUG in png.h .
400 Changed "bad adaptive filter type" from error to warning in pngrutil.c .
401 Fixed a documentation error about default filtering with 8-bit indexed-color.
402 Separated the PNG_NO_STDIO macro into PNG_NO_STDIO and PNG_NO_CONSOLE_IO
403 (L. Peter Deutsch).
404 Added png_set_rgb_to_gray() and png_get_rgb_to_gray_status() functions.
405 Added png_get_copyright() and png_get_header_version() functions.
406 Revised comments on png_set_progressive_read_fn() in libpng.txt and example.c
407 Added information about debugging in libpng.txt and libpng.3 .
408 Changed "ln -sf" to "ln -s -f" in makefile.s2x, makefile.lnx, and makefile.sco.
409 Removed lines after Dynamic Dependencies" in makefile.aco .
410 Revised makefile.dec to make a shared library (Jeremie Petit).
411 Removed trailing blanks from all files.
412version 1.0.2a [January 6, 1999]
413 Removed misplaced #endif and #ifdef PNG_NO_EXTERN near the end of png.h
414 Added "if" tests to silence complaints about unused png_ptr in png.h and png.c
415 Changed "check_if_png" function in example.c to return true (nonzero) if PNG.
416 Changed libpng.txt to demonstrate png_sig_cmp() instead of png_check_sig()
417 which is obsolete.
418
419version 1.0.3 [January 14, 1999]
420 Added makefile.hux, for Hewlett Packard HPUX 10.20 and 11.00 (Jim Rice)
421 Added a statement of Y2K compliance in png.h, libpng.3, and Y2KINFO.
422version 1.0.3a [August 12, 1999]
423 Added check for PNG_READ_INTERLACE_SUPPORTED in pngread.c; issue a warning
424 if an attempt is made to read an interlaced image when it's not supported.
425 Added check if png_ptr->trans is defined before freeing it in pngread.c
426 Modified the Y2K statement to include versions back to version 0.71
427 Fixed a bug in the check for valid IHDR bit_depth/color_types in pngrutil.c
428 Modified makefile.wat (added -zp8 flag, ".symbolic", changed some comments)
429 Replaced leading blanks with tab characters in makefile.hux
430 Changed "dworkin.wustl.edu" to "ccrc.wustl.edu" in various documents.
431 Changed (float)red and (float)green to (double)red, (double)green
432 in png_set_rgb_to_gray() to avoid "promotion" problems in AIX.
433 Fixed a bug in pngconf.h that omitted <stdio.h> when PNG_DEBUG==0 (K Bracey).
434 Reformatted libpng.3 and libpngpf.3 with proper fonts (script by J. vanZandt).
435 Updated documentation to refer to the PNG-1.2 specification.
436 Removed ansi2knr.c and left pointers to the latest source for ansi2knr.c
437 in makefile.knr, INSTALL, and README (L. Peter Deutsch)
438 Fixed bugs in calculation of the length of rowbytes when adding alpha
439 channels to 16-bit images, in pngrtran.c (Chris Nokleberg)
440 Added function png_set_user_transform_info() to store user_transform_ptr,
441 user_depth, and user_channels into the png_struct, and a function
442 png_get_user_transform_ptr() to retrieve the pointer (Chris Nokleberg)
443 Added function png_set_empty_plte_permitted() to make libpng useable
444 in MNG applications.
445 Corrected the typedef for png_free_ptr in png.h (Jesse Jones).
446 Correct gamma with srgb is 45455 instead of 45000 in pngrutil.c, to be
447 consistent with PNG-1.2, and allow variance of 500 before complaining.
448 Added assembler code contributed by Intel in file pngvcrd.c and modified
449 makefile.w32 to use it (Nirav Chhatrapati, INTEL Corporation, Gilles Vollant)
450 Changed "ln -s -f" to "ln -f -s" in the makefiles to make Solaris happy.
451 Added some aliases for png_set_expand() in pngrtran.c, namely
452 png_set_expand_PLTE(), png_set_expand_depth(), and png_set_expand_tRNS()
453 (Greg Roelofs, in "PNG: The Definitive Guide").
454 Added makefile.beo for BEOS on X86, contributed by Sander Stok.
455version 1.0.3b [August 26, 1999]
456 Replaced 2147483647L several places with PNG_MAX_UINT macro, defined in png.h
457 Changed leading blanks to tabs in all makefiles.
458 Define PNG_USE_PNGVCRD in makefile.w32, to get MMX assembler code.
459 Made alternate versions of png_set_expand() in pngrtran.c, namely
460 png_set_gray_1_2_4_to_8, png_set_palette_to_rgb, and png_set_tRNS_to_alpha
461 (Greg Roelofs, in "PNG: The Definitive Guide"). Deleted the 1.0.3a aliases.
462 Relocated start of 'extern "C"' block in png.h so it doesn't include pngconf.h
463 Revised calculation of num_blocks in pngmem.c to avoid a potentially
464 negative shift distance, whose results are undefined in the C language.
465 Added a check in pngset.c to prevent writing multiple tIME chunks.
466 Added a check in pngwrite.c to detect invalid small window_bits sizes.
467version 1.0.3d [September 4, 1999]
468 Fixed type casting of igamma in pngrutil.c
469 Added new png_expand functions to scripts/pngdef.pas and pngos2.def
470 Added a demo read_user_transform_fn that examines the row filters in pngtest.c
471
472Version 1.0.4 [September 24, 1999, not distributed publicly]
473 Define PNG_ALWAYS_EXTERN in pngconf.h if __STDC__ is defined
474 Delete #define PNG_INTERNAL and include "png.h" from pngasmrd.h
475 Made several minor corrections to pngtest.c
476 Renamed the makefiles with longer but more user friendly extensions.
477 Copied the PNG copyright and license to a separate LICENSE file.
478 Revised documentation, png.h, and example.c to remove reference to
479 "viewing_gamma" which no longer appears in the PNG specification.
480 Revised pngvcrd.c to use MMX code for interlacing only on the final pass.
481 Updated pngvcrd.c to use the faster C filter algorithms from libpng-1.0.1a
482 Split makefile.win32vc into two versions, makefile.vcawin32 (uses MMX
483 assembler code) and makefile.vcwin32 (doesn't).
484 Added a CPU timing report to pngtest.c (enabled by defining PNGTEST_TIMING)
485 Added a copy of pngnow.png to the distribution.
486version 1.0.4a [September 25, 1999]
487 Increase max_pixel_depth in pngrutil.c if a user transform needs it.
488 Changed several division operations to right-shifts in pngvcrd.c
489version 1.0.4b [September 30, 1999]
490 Added parentheses in line 3732 of pngvcrd.c
491 Added a comment in makefile.linux warning about buggy -O3 in pgcc 2.95.1
492version 1.0.4c [October 1, 1999]
493 Added a "png_check_version" function in png.c and pngtest.c that will generate
494 a helpful compiler error if an old png.h is found in the search path.
495 Changed type of png_user_transform_depth|channels from int to png_byte.
496 Added "Libpng is OSI Certified Open Source Software" statement to png.h
497version 1.0.4d [October 6, 1999]
498 Changed 0.45 to 0.45455 in png_set_sRGB()
499 Removed unused PLTE entries from pngnow.png
500 Re-enabled some parts of pngvcrd.c (png_combine_row) that work properly.
501version 1.0.4e [October 10, 1999]
502 Fixed sign error in pngvcrd.c (Greg Roelofs)
503 Replaced some instances of memcpy with simple assignments in pngvcrd (GR-P)
504version 1.0.4f [October 15, 1999]
505 Surrounded example.c code with #if 0 .. #endif to prevent people from
506 inadvertently trying to compile it.
507 Changed png_get_header_version() from a function to a macro in png.h
508 Added type casting mostly in pngrtran.c and pngwtran.c
509 Removed some pointless "ptr = NULL" in pngmem.c
510 Added a "contrib" directory containing the source code from Greg's book.
511
512version 1.0.5 [October 15, 1999]
513 Minor editing of the INSTALL and README files.
514version 1.0.5a [October 23, 1999]
515 Added contrib/pngsuite and contrib/pngminus (Willem van Schaik)
516 Fixed a typo in the png_set_sRGB() function call in example.c (Jan Nijtmans)
517 Further optimization and bugfix of pngvcrd.c
518 Revised pngset.c so that it does not allocate or free memory in the user's
519 text_ptr structure. Instead, it makes its own copy.
520 Created separate write_end_info_struct in pngtest.c for a more severe test.
521 Added code in pngwrite.c to free info_ptr->text[i].key to stop a memory leak.
522version 1.0.5b [November 23, 1999]
523 Moved PNG_FLAG_HAVE_CHUNK_HEADER, PNG_FLAG_BACKGROUND_IS_GRAY and
524 PNG_FLAG_WROTE_tIME from flags to mode.
525 Added png_write_info_before_PLTE() function.
526 Fixed some typecasting in contrib/gregbook/*.c
527 Updated scripts/makevms.com and added makevms.com to contrib/gregbook
528 and contrib/pngminus (Martin Zinser)
529version 1.0.5c [November 26, 1999]
530 Moved png_get_header_version from png.h to png.c, to accommodate ansi2knr.
531 Removed all global arrays (according to PNG_NO_GLOBAL_ARRAYS macro), to
532 accommodate making DLL's: Moved usr_png_ver from global variable to function
533 png_get_header_ver() in png.c. Moved png_sig to png_sig_bytes in png.c and
534 eliminated use of png_sig in pngwutil.c. Moved the various png_CHNK arrays
535 into pngtypes.h. Eliminated use of global png_pass arrays. Declared the
536 png_CHNK and png_pass arrays to be "const". Made the global arrays
537 available to applications (although none are used in libpng itself) when
538 PNG_NO_GLOBAL_ARRAYS is not defined or when PNG_GLOBAL_ARRAYS is defined.
539 Removed some extraneous "-I" from contrib/pngminus/makefile.std
540 Changed the PNG_sRGB_INTENT macros in png.h to be consistent with PNG-1.2.
541 Change PNG_SRGB_INTENT to PNG_sRGB_INTENT in libpng.txt and libpng.3
542version 1.0.5d [November 29, 1999]
543 Add type cast (png_const_charp) two places in png.c
544 Eliminated pngtypes.h; use macros instead to declare PNG_CHNK arrays.
545 Renamed "PNG_GLOBAL_ARRAYS" to "PNG_USE_GLOBAL_ARRAYS" and made available
546 to applications a macro "PNG_USE_LOCAL_ARRAYS".
547 Remove all the new declarations with #ifdef/#endif when
548 PNG_USE_GLOBAL_ARRAYS is defined.
549 Added PNG_EXPORT_VAR macro to accommodate making DLL's.
550version 1.0.5e [November 30, 1999]
551 Added iCCP, iTXt, and sPLT support; added "lang" member to the png_text
552 structure; refactored the inflate/deflate support to make adding new chunks
553 with trailing compressed parts easier in the future, and added new functions
554 png_free_iCCP, png_free_pCAL, png_free_sPLT, png_free_text, png_get_iCCP,
555 png_get_spalettes, png_set_iCCP, png_set_spalettes (Eric S. Raymond).
556 NOTE: Applications that write text chunks MUST define png_text->lang
557 before calling png_set_text(). It must be set to NULL if you want to
558 write tEXt or zTXt chunks. If you want your application to be able to
559 run with older versions of libpng, use
560
561 #ifdef PNG_iTXt_SUPPORTED
562 png_text[i].lang = NULL;
563 #endif
564
565 Changed png_get_oFFs() and png_set_oFFs() to use signed rather than unsigned
566 offsets (Eric S. Raymond).
567 Combined PNG_READ_cHNK_SUPPORTED and PNG_WRITE_cHNK_SUPPORTED macros into
568 PNG_cHNK_SUPPORTED and combined the three types of PNG_text_SUPPORTED
569 macros, leaving the separate macros also available.
570 Removed comments on #endifs at the end of many short, non-nested #if-blocks.
571version 1.0.5f [December 6, 1999]
572 Changed makefile.solaris to issue a warning about potential problems when
573 the ucb "ld" is in the path ahead of the ccs "ld".
574 Removed "- [date]" from the "synopsis" line in libpng.3 and libpngpf.3.
575 Added sCAL chunk support (Eric S. Raymond).
576version 1.0.5g [December 7, 1999]
577 Fixed "png_free_spallettes" typo in png.h
578 Added code to handle new chunks in pngpread.c
579 Moved PNG_CHNK string macro definitions outside of PNG_NO_EXTERN block
580 Added "translated_key" to png_text structure and png_write_iTXt().
581 Added code in pngwrite.c to work around a newly discovered zlib bug.
582version 1.0.5h [December 10, 1999]
583 NOTE: regarding the note for version 1.0.5e, the following must also
584 be included in your code:
585 png_text[i].translated_key = NULL;
586 Unknown chunk handling is now supported.
587 Option to eliminate all floating point support was added. Some new
588 fixed-point functions such as png_set_gAMA_fixed() were added.
589 Expanded tabs and removed trailing blanks in source files.
590version 1.0.5i [December 13, 1999]
591 Added some type casts to silence compiler warnings.
592 Renamed "png_free_spalette" to "png_free_spalettes" for consistency.
593 Removed leading blanks from a #define in pngvcrd.c
594 Added some parameters to the new png_set_keep_unknown_chunks() function.
595 Added a test for up->location != 0 in the first instance of writing
596 unknown chunks in pngwrite.c
597 Changed "num" to "i" in png_free_spalettes() and png_free_unknowns() to
598 prevent recursion.
599 Added png_free_hIST() function.
600 Various patches to fix bugs in the sCAL and integer cHRM processing,
601 and to add some convenience macros for use with sCAL.
602version 1.0.5j [December 21, 1999]
603 Changed "unit" parameter of png_write_sCAL from png_byte to int, to work
604 around buggy compilers.
605 Added new type "png_fixed_point" for integers that hold float*100000 values
606 Restored backward compatibility of tEXt/zTXt chunk processing:
607 Restored the first four members of png_text to the same order as v.1.0.5d.
608 Added members "lang_key" and "itxt_length" to png_text struct. Set
609 text_length=0 when "text" contains iTXt data. Use the "compression"
610 member to distinguish among tEXt/zTXt/iTXt types. Added
611 PNG_ITXT_COMPRESSION_NONE (1) and PNG_ITXT_COMPRESSION_zTXt(2) macros.
612 The "Note" above, about backward incompatibility of libpng-1.0.5e, no
613 longer applies.
614 Fixed png_read|write_iTXt() to read|write parameters in the right order,
615 and to write the iTXt chunk after IDAT if it appears in the end_ptr.
616 Added pnggccrd.c, version of pngvcrd.c Intel assembler for gcc (Greg Roelofs)
617 Reversed the order of trying to write floating-point and fixed-point gAMA.
618version 1.0.5k [December 27, 1999]
619 Added many parentheses, e.g., "if (a && b & c)" becomes "if (a && (b & c))"
620 Added png_handle_as_unknown() function (Glenn)
621 Added png_free_chunk_list() function and chunk_list and num_chunk_list members
622 of png_ptr.
623 Eliminated erroneous warnings about multiple sPLT chunks and sPLT-after-PLTE.
624 Fixed a libpng-1.0.5h bug in pngrutil.c that was issuing erroneous warnings
625 about ignoring incorrect gAMA with sRGB (gAMA was in fact not ignored)
626 Added png_free_tRNS(); png_set_tRNS() now malloc's its own trans array (ESR).
627 Define png_get_int_32 when oFFs chunk is supported as well as when pCAL is.
628 Changed type of proflen from png_int_32 to png_uint_32 in png_get_iCCP().
629version 1.0.5l [January 1, 2000]
630 Added functions png_set_read_user_chunk_fn() and png_get_user_chunk_ptr()
631 for setting a callback function to handle unknown chunks and for
632 retrieving the associated user pointer (Glenn).
633version 1.0.5m [January 7, 2000]
634 Added high-level functions png_read_png(), png_write_png(), png_free_pixels().
635version 1.0.5n [January 9, 2000]
636 Added png_free_PLTE() function, and modified png_set_PLTE() to malloc its
637 own memory for info_ptr->palette. This makes it safe for the calling
638 application to free its copy of the palette any time after it calls
639 png_set_PLTE().
640version 1.0.5o [January 20, 2000]
641 Cosmetic changes only (removed some trailing blanks and TABs)
642version 1.0.5p [January 31, 2000]
643 Renamed pngdll.mak to makefile.bd32
644 Cosmetic changes in pngtest.c
645version 1.0.5q [February 5, 2000]
646 Relocated the makefile.solaris warning about PATH problems.
647 Fixed pngvcrd.c bug by pushing/popping registers in mmxsupport (Bruce Oberg)
648 Revised makefile.gcmmx
649 Added PNG_SETJMP_SUPPORTED, PNG_SETJMP_NOT_SUPPORTED, and PNG_ABORT() macros
650version 1.0.5r [February 7, 2000]
651 Removed superfluous prototype for png_get_itxt from png.h
652 Fixed a bug in pngrtran.c that improperly expanded the background color.
653 Return *num_text=0 from png_get_text() when appropriate, and fix documentation
654 of png_get_text() in libpng.txt/libpng.3.
655version 1.0.5s [February 18, 2000]
656 Added "png_jmp_env()" macro to pngconf.h, to help people migrate to the
657 new error handler that's planned for the next libpng release, and changed
658 example.c, pngtest.c, and contrib programs to use this macro.
659 Revised some of the DLL-export macros in pngconf.h (Greg Roelofs)
660 Fixed a bug in png_read_png() that caused it to fail to expand some images
661 that it should have expanded.
662 Fixed some mistakes in the unused and undocumented INCH_CONVERSIONS functions
663 in pngget.c
664 Changed the allocation of palette, history, and trans arrays back to
665 the version 1.0.5 method (linking instead of copying) which restores
666 backward compatibility with version 1.0.5. Added some remarks about
667 that in example.c. Added "free_me" member to info_ptr and png_ptr
668 and added png_free_data() function.
669 Updated makefile.linux and makefile.gccmmx to make directories conditionally.
670 Made cosmetic changes to pngasmrd.h
671 Added png_set_rows() and png_get_rows(), for use with png_read|write_png().
672 Modified png_read_png() to allocate info_ptr->row_pointers only if it
673 hasn't already been allocated.
674version 1.0.5t [March 4, 2000]
675 Changed png_jmp_env() migration aiding macro to png_jmpbuf().
676 Fixed "interlace" typo (should be "interlaced") in contrib/gregbook/read2-x.c
677 Fixed bug with use of PNG_BEFORE_IHDR bit in png_ptr->mode, introduced when
678 PNG_FLAG_HAVE_CHUNK_HEADER was moved into png_ptr->mode in version 1.0.5b
679 Files in contrib/gregbook were revised to use png_jmpbuf() and to select
680 a 24-bit visual if one is available, and to allow abbreviated options.
681 Files in contrib/pngminus were revised to use the png_jmpbuf() macro.
682 Removed spaces in makefile.linux and makefile.gcmmx, introduced in 1.0.5s
683version 1.0.5u [March 5, 2000]
684 Simplified the code that detects old png.h in png.c and pngtest.c
685 Renamed png_spalette (_p, _pp) to png_sPLT_t (_tp, _tpp)
686 Increased precision of rgb_to_gray calculations from 8 to 15 bits and
687 added png_set_rgb_to_gray_fixed() function.
688 Added makefile.bc32 (32-bit Borland C++, C mode)
689version 1.0.5v [March 11, 2000]
690 Added some parentheses to the png_jmpbuf macro definition.
691 Updated references to the zlib home page, which has moved to freesoftware.com.
692 Corrected bugs in documentation regarding png_read_row() and png_write_row().
693 Updated documentation of png_rgb_to_gray calculations in libpng.3/libpng.txt.
694 Renamed makefile.borland,turboc3 back to makefile.bor,tc3 as in version 1.0.3,
695 revised borland makefiles; added makefile.ibmvac3 and makefile.gcc (Cosmin)
696
697version 1.0.6 [March 20, 2000]
698 Minor revisions of makefile.bor, libpng.txt, and gregbook/rpng2-win.c
699 Added makefile.sggcc (SGI IRIX with gcc)
700version 1.0.6d [April 7, 2000]
701 Changed sprintf() to strcpy() in png_write_sCAL_s() to work without STDIO
702 Added data_length parameter to png_decompress_chunk() function
703 Revised documentation to remove reference to abandoned png_free_chnk functions
704 Fixed an error in png_rgb_to_gray_fixed()
705 Revised example.c, usage of png_destroy_write_struct().
706 Renamed makefile.ibmvac3 to makefile.ibmc, added libpng.icc IBM project file
707 Added a check for info_ptr->free_me&PNG_FREE_TEXT when freeing text in png.c
708 Simplify png_sig_bytes() function to remove use of non-ISO-C strdup().
709version 1.0.6e [April 9, 2000]
710 Added png_data_freer() function.
711 In the code that checks for over-length tRNS chunks, added check of
712 info_ptr->num_trans as well as png_ptr->num_trans (Matthias Benckmann)
713 Minor revisions of libpng.txt/libpng.3.
714 Check for existing data and free it if the free_me flag is set, in png_set_*()
715 and png_handle_*().
716 Only define PNG_WEIGHTED_FILTERS_SUPPORTED when PNG_FLOATING_POINT_SUPPORTED
717 is defined.
718 Changed several instances of PNG_NO_CONSOLE_ID to PNG_NO_STDIO in pngrutil.c
719 and mentioned the purposes of the two macros in libpng.txt/libpng.3.
720version 1.0.6f [April 14, 2000]
721 Revised png_set_iCCP() and png_set_rows() to avoid prematurely freeing data.
722 Add checks in png_set_text() for NULL members of the input text structure.
723 Revised libpng.txt/libpng.3.
724 Removed superfluous prototype for png_set_itxt from png.h
725 Removed "else" from pngread.c, after png_error(), and changed "0" to "length".
726 Changed several png_errors about malformed ancillary chunks to png_warnings.
727version 1.0.6g [April 24, 2000]
728 Added png_pass-* arrays to pnggccrd.c when PNG_USE_LOCAL_ARRAYS is defined.
729 Relocated paragraph about png_set_background() in libpng.3/libpng.txt
730 and other revisions (Matthias Benckmann)
731 Relocated info_ptr->free_me, png_ptr->free_me, and other info_ptr and
732 png_ptr members to restore binary compatibility with libpng-1.0.5
733 (breaks compatibility with libpng-1.0.6).
734version 1.0.6h [April 24, 2000]
735 Changed shared library so-number pattern from 2.x.y.z to xy.z (this builds
736 libpng.so.10 & libpng.so.10.6h instead of libpng.so.2 & libpng.so.2.1.0.6h)
737 This is a temporary change for test purposes.
738version 1.0.6i [May 2, 2000]
739 Rearranged some members at the end of png_info and png_struct, to put
740 unknown_chunks_num and free_me within the original size of the png_structs
741 and free_me, png_read_user_fn, and png_free_fn within the original png_info,
742 because some old applications allocate the structs directly instead of
743 using png_create_*().
744 Added documentation of user memory functions in libpng.txt/libpng.3
745 Modified png_read_png so that it will use user_allocated row_pointers
746 if present, unless free_me directs that it be freed, and added description
747 of the use of png_set_rows() and png_get_rows() in libpng.txt/libpng.3.
748 Added PNG_LEGACY_SUPPORTED macro, and #ifdef out all new (since version
749 1.00) members of png_struct and png_info, to regain binary compatibility
750 when you define this macro. Capabilities lost in this event
751 are user transforms (new in version 1.0.0),the user transform pointer
752 (new in version 1.0.2), rgb_to_gray (new in 1.0.5), iCCP, sCAL, sPLT,
753 the high-level interface, and unknown chunks support (all new in 1.0.6).
754 This was necessary because of old applications that allocate the structs
755 directly as authors were instructed to do in libpng-0.88 and earlier,
756 instead of using png_create_*().
757 Added modes PNG_CREATED_READ_STRUCT and PNG_CREATED_WRITE_STRUCT which
758 can be used to detect codes that directly allocate the structs, and
759 code to check these modes in png_read_init() and png_write_init() and
760 generate a libpng error if the modes aren't set and PNG_LEGACY_SUPPORTED
761 was not defined.
762 Added makefile.intel and updated makefile.watcom (Pawel Mrochen)
763version 1.0.6j [May 3, 2000]
764 Overloaded png_read_init() and png_write_init() with macros that convert
765 calls to png_read_init_2() or png_write_init_2() that check the version
766 and structure sizes.
767version 1.0.7beta11 [May 7, 2000]
768 Removed the new PNG_CREATED_READ_STRUCT and PNG_CREATED_WRITE_STRUCT modes
769 which are no longer used.
770 Eliminated the three new members of png_text when PNG_LEGACY_SUPPORTED is
771 defined or when neither PNG_READ_iTXt_SUPPORTED nor PNG_WRITE_iTXT_SUPPORTED
772 is defined.
773 Made PNG_NO_READ|WRITE_iTXt the default setting, to avoid memory
774 overrun when old applications fill the info_ptr->text structure directly.
775 Added PNGAPI macro, and added it to the definitions of all exported functions.
776 Relocated version macro definitions ahead of the includes of zlib.h and
777 pngconf.h in png.h.
778version 1.0.7beta12 [May 12, 2000]
779 Revised pngset.c to avoid a problem with expanding the png_debug macro.
780 Deleted some extraneous defines from pngconf.h
781 Made PNG_NO_CONSOLE_IO the default condition when PNG_BUILD_DLL is defined.
782 Use MSC _RPTn debugging instead of fprintf if _MSC_VER is defined.
783 Added png_access_version_number() function.
784 Check for mask&PNG_FREE_CHNK (for TEXT, SCAL, PCAL) in png_free_data().
785 Expanded libpng.3/libpng.txt information about png_data_freer().
786version 1.0.7beta14 [May 17, 2000] (beta13 was not published)
787 Changed pnggccrd.c and pngvcrd.c to handle bad adaptive filter types as
788 warnings instead of errors, as pngrutil.c does.
789 Set the PNG_INFO_IDAT valid flag in png_set_rows() so png_write_png()
790 will actually write IDATs.
791 Made the default PNG_USE_LOCAL_ARRAYS depend on PNG_DLL instead of WIN32.
792 Make png_free_data() ignore its final parameter except when freeing data
793 that can have multiple instances (text, sPLT, unknowns).
794 Fixed a new bug in png_set_rows().
795 Removed info_ptr->valid tests from png_free_data(), as in version 1.0.5.
796 Added png_set_invalid() function.
797 Fixed incorrect illustrations of png_destroy_write_struct() in example.c.
798version 1.0.7beta15 [May 30, 2000]
799 Revised the deliberately erroneous Linux setjmp code in pngconf.h to produce
800 fewer error messages.
801 Rearranged checks for Z_OK to check the most likely path first in pngpread.c
802 and pngwutil.c.
803 Added checks in pngtest.c for png_create_*() returning NULL, and mentioned
804 in libpng.txt/libpng.3 the need for applications to check this.
805 Changed names of png_default_*() functions in pngtest to pngtest_*().
806 Changed return type of png_get_x|y_offset_*() from png_uint_32 to png_int_32.
807 Fixed some bugs in the unused PNG_INCH_CONVERSIONS functions in pngget.c
808 Set each pointer to NULL after freeing it in png_free_data().
809 Worked around a problem in pngconf.h; AIX's strings.h defines an "index"
810 macro that conflicts with libpng's png_color_16.index. (Dimitri Papadapoulos)
811 Added "msvc" directory with MSVC++ project files (Simon-Pierre Cadieux).
812version 1.0.7beta16 [June 4, 2000]
813 Revised the workaround of AIX string.h "index" bug.
814 Added a check for overlength PLTE chunk in pngrutil.c.
815 Added PNG_NO_POINTER_INDEXING macro to use array-indexing instead of pointer
816 indexing in pngrutil.c and pngwutil.c to accommodate a buggy compiler.
817 Added a warning in png_decompress_chunk() when it runs out of data, e.g.
818 when it tries to read an erroneous PhotoShop iCCP chunk.
819 Added PNG_USE_DLL macro.
820 Revised the copyright/disclaimer/license notice.
821 Added contrib/msvctest directory
822version 1.0.7rc1 [June 9, 2000]
823 Corrected the definition of PNG_TRANSFORM_INVERT_ALPHA (0x0400 not 0x0200)
824 Added contrib/visupng directory (Willem van Schaik)
825version 1.0.7beta18 [June 23, 2000]
826 Revised PNGAPI definition, and pngvcrd.c to work with __GCC__
827 and do not redefine PNGAPI if it is passed in via a compiler directive.
828 Revised visupng/PngFile.c to remove returns from within the Try block.
829 Removed leading underscores from "_PNG_H" and "_PNG_SAVE_BSD_SOURCE" macros.
830 Updated contrib/visupng/cexcept.h to version 1.0.0.
831 Fixed bugs in pngwrite.c and pngwutil.c that prevented writing iCCP chunks.
832version 1.0.7rc2 [June 28, 2000]
833 Updated license to include disclaimers required by UCITA.
834 Fixed "DJBPP" typo in pnggccrd.c introduced in beta18.
835
836version 1.0.7 [July 1, 2000]
837 Revised the definition of "trans_values" in libpng.3/libpng.txt
838version 1.0.8beta1 [July 8, 2000]
839 Added png_free(png_ptr, key) two places in pngpread.c to stop memory leaks.
840 Changed PNG_NO_STDIO to PNG_NO_CONSOLE_IO, several places in pngrutil.c and
841 pngwutil.c.
842 Changed PNG_EXPORT_VAR to use PNG_IMPEXP, in pngconf.h.
843 Removed unused "#include <assert.h>" from png.c
844 Added WindowsCE support.
845 Revised pnggccrd.c to work with gcc-2.95.2 and in the Cygwin environment.
846version 1.0.8beta2 [July 10, 2000]
847 Added project files to the wince directory and made further revisions
848 of pngtest.c, pngrio.c, and pngwio.c in support of WindowsCE.
849version 1.0.8beta3 [July 11, 2000]
850 Only set the PNG_FLAG_FREE_TRNS or PNG_FREE_TRNS flag in png_handle_tRNS()
851 for indexed-color input files to avoid potential double-freeing trans array
852 under some unusual conditions; problem was introduced in version 1.0.6f.
853 Further revisions to pngtest.c and files in the wince subdirectory.
854version 1.0.8beta4 [July 14, 2000]
855 Added the files pngbar.png and pngbar.jpg to the distribution.
856 Added makefile.cygwin, and cygwin support in pngconf.h
857 Added PNG_NO_ZALLOC_ZERO macro (makes png_zalloc skip zeroing memory)
858version 1.0.8rc1 [July 16, 2000]
859 Revised png_debug() macros and statements to eliminate compiler warnings.
860
861version 1.0.8 [July 24, 2000]
862 Added png_flush() in pngwrite.c, after png_write_IEND().
863 Updated makefile.hpux to build a shared library.
864version 1.0.9beta1 [November 10, 2000]
865 Fixed typo in scripts/makefile.hpux
866 Updated makevms.com in scripts and contrib/* and contrib/* (Martin Zinser)
867 Fixed seqence-point bug in contrib/pngminus/png2pnm (Martin Zinser)
868 Changed "cdrom.com" in documentation to "libpng.org"
869 Revised pnggccrd.c to get it all working, and updated makefile.gcmmx (Greg).
870 Changed type of "params" from voidp to png_voidp in png_read|write_png().
871 Make sure PNGAPI and PNG_IMPEXP are defined in pngconf.h.
872 Revised the 3 instances of WRITEFILE in pngtest.c.
873 Relocated "msvc" and "wince" project subdirectories into "dll" subdirectory.
874 Updated png.rc in dll/msvc project
875 Revised makefile.dec to define and use LIBPATH and INCPATH
876 Increased size of global png_libpng_ver[] array from 12 to 18 chars.
877 Made global png_libpng_ver[], png_sig[] and png_pass_*[] arrays const.
878 Removed duplicate png_crc_finish() from png_handle_bKGD() function.
879 Added a warning when application calls png_read_update_info() multiple times.
880 Revised makefile.cygwin
881 Fixed bugs in iCCP support in pngrutil.c and pngwutil.c.
882 Replaced png_set_empty_plte_permitted() with png_permit_mng_features().
883version 1.0.9beta2 [November 19, 2000]
884 Renamed the "dll" subdirectory "projects".
885 Added borland project files to "projects" subdirectory.
886 Set VS_FF_PRERELEASE and VS_FF_PATCHED flags in msvc/png.rc when appropriate.
887 Add error message in png_set_compression_buffer_size() when malloc fails.
888version 1.0.9beta3 [November 23, 2000]
889 Revised PNG_LIBPNG_BUILD_TYPE macro in png.h, used in the msvc project.
890 Removed the png_flush() in pngwrite.c that crashes some applications
891 that don't set png_output_flush_fn.
892 Added makefile.macosx and makefile.aix to scripts directory.
893version 1.0.9beta4 [December 1, 2000]
894 Change png_chunk_warning to png_warning in png_check_keyword().
895 Increased the first part of msg buffer from 16 to 18 in png_chunk_error().
896version 1.0.9beta5 [December 15, 2000]
897 Added support for filter method 64 (for PNG datastreams embedded in MNG).
898version 1.0.9beta6 [December 18, 2000]
899 Revised png_set_filter() to accept filter method 64 when appropriate.
900 Added new PNG_HAVE_PNG_SIGNATURE bit to png_ptr->mode and use it to
901 help prevent applications from using MNG features in PNG datastreams.
902 Added png_permit_mng_features() function.
903 Revised libpng.3/libpng.txt. Changed "filter type" to "filter method".
904version 1.0.9rc1 [December 23, 2000]
905 Revised test for PNG_HAVE_PNG_SIGNATURE in pngrutil.c
906 Fixed error handling of unknown compression type in png_decompress_chunk().
907 In pngconf.h, define __cdecl when _MSC_VER is defined.
908version 1.0.9beta7 [December 28, 2000]
909 Changed PNG_TEXT_COMPRESSION_zTXt to PNG_COMPRESSION_TYPE_BASE several places.
910 Revised memory management in png_set_hIST and png_handle_hIST in a backward
911 compatible manner. PLTE and tRNS were revised similarly.
912 Revised the iCCP chunk reader to ignore trailing garbage.
913version 1.0.9beta8 [January 12, 2001]
914 Moved pngasmrd.h into pngconf.h.
915 Improved handling of out-of-spec garbage iCCP chunks generated by PhotoShop.
916version 1.0.9beta9 [January 15, 2001]
917 Added png_set_invalid, png_permit_mng_features, and png_mmx_supported to
918 wince and msvc project module definition files.
919 Minor revision of makefile.cygwin.
920 Fixed bug with progressive reading of narrow interlaced images in pngpread.c
921version 1.0.9beta10 [January 16, 2001]
922 Do not typedef png_FILE_p in pngconf.h when PNG_NO_STDIO is defined.
923 Fixed "png_mmx_supported" typo in project definition files.
924version 1.0.9beta11 [January 19, 2001]
925 Updated makefile.sgi to make shared library.
926 Removed png_mmx_support() function and disabled PNG_MNG_FEATURES_SUPPORTED
927 by default, for the benefit of DLL forward compatibility. These will
928 be re-enabled in version 1.2.0.
929version 1.0.9rc2 [January 22, 2001]
930 Revised cygwin support.
931
932version 1.0.9 [January 31, 2001]
933 Added check of cygwin's ALL_STATIC in pngconf.h
934 Added "-nommx" parameter to contrib/gregbook/rpng2-win and rpng2-x demos.
935version 1.0.10beta1 [March 14, 2001]
936 Revised makefile.dec, makefile.sgi, and makefile.sggcc; added makefile.hpgcc.
937 Reformatted libpng.3 to eliminate bad line breaks.
938 Added checks for _mmx_supported in the read_filter_row function of pnggccrd.c
939 Added prototype for png_mmx_support() near the top of pnggccrd.c
940 Moved some error checking from png_handle_IHDR to png_set_IHDR.
941 Added PNG_NO_READ_SUPPORTED and PNG_NO_WRITE_SUPPORTED macros.
942 Revised png_mmx_support() function in pnggccrd.c
943 Restored version 1.0.8 PNG_WRITE_EMPTY_PLTE_SUPPORTED behavior in pngwutil.c
944 Fixed memory leak in contrib/visupng/PngFile.c
945 Fixed bugs in png_combine_row() in pnggccrd.c and pngvcrd.c (C version)
946 Added warnings when retrieving or setting gamma=0.
947 Increased the first part of msg buffer from 16 to 18 in png_chunk_warning().
948version 1.0.10rc1 [March 23, 2001]
949 Changed all instances of memcpy, strcpy, and strlen to png_memcpy, png_strcpy,
950 and png_strlen.
951 Revised png_mmx_supported() function in pnggccrd.c to return proper value.
952 Fixed bug in progressive reading (pngpread.c) with small images (height < 8).
953
954version 1.0.10 [March 30, 2001]
955 Deleted extraneous space (introduced in 1.0.9) from line 42 of makefile.cygwin
956 Added beos project files (Chris Herborth)
957version 1.0.11beta1 [April 3, 2001]
958 Added type casts on several png_malloc() calls (Dimitri Papadapoulos).
959 Removed a no-longer needed AIX work-around from pngconf.h
960 Changed several "//" single-line comments to C-style in pnggccrd.c
961version 1.0.11beta2 [April 11, 2001]
962 Removed PNGAPI from several functions whose prototypes did not have PNGAPI.
963 Updated scripts/pngos2.def
964version 1.0.11beta3 [April 14, 2001]
965 Added checking the results of many instances of png_malloc() for NULL
966version 1.0.11beta4 [April 20, 2001]
967 Undid the changes from version 1.0.11beta3. Added a check for NULL return
968 from user's malloc_fn().
969 Removed some useless type casts of the NULL pointer.
970 Added makefile.netbsd
971
972version 1.0.11 [April 27, 2001]
973 Revised makefile.netbsd
974version 1.0.12beta1 [May 14, 2001]
975 Test for Windows platform in pngconf.h when including malloc.h (Emmanuel Blot)
976 Updated makefile.cygwin and handling of Cygwin's ALL_STATIC in pngconf.h
977 Added some never-to-be-executed code in pnggccrd.c to quiet compiler warnings.
978 Eliminated the png_error about apps using png_read|write_init(). Instead,
979 libpng will reallocate the png_struct and info_struct if they are too small.
980 This retains future binary compatibility for old applications written for
981 libpng-0.88 and earlier.
982version 1.2.0beta1 [May 6, 2001]
983 Bumped DLLNUM to 2.
984 Re-enabled PNG_MNG_FEATURES_SUPPORTED and enabled PNG_ASSEMBLER_CODE_SUPPORTED
985 by default.
986 Added runtime selection of MMX features.
987 Added png_set_strip_error_numbers function and related macros.
988version 1.2.0beta2 [May 7, 2001]
989 Finished merging 1.2.0beta1 with version 1.0.11
990 Added a check for attempts to read or write PLTE in grayscale PNG datastreams.
991version 1.2.0beta3 [May 17, 2001]
992 Enabled user memory function by default.
993 Modified png_create_struct so it passes user mem_ptr to user memory allocator.
994 Increased png_mng_features flag from png_byte to png_uint_32.
995 Bumped shared-library (so-number) and dll-number to 3.
996version 1.0.12 [June 8, 2001]
997version 1.2.0beta4 [June 23, 2001]
998 Check for missing profile length field in iCCP chunk and free chunk_data
999 in case of truncated iCCP chunk.
1000 Bumped shared-library number to 3 in makefile.sgi and makefile.sggcc
1001 Bumped dll-number from 2 to 3 in makefile.cygwin
1002 Revised contrib/gregbook/rpng*-x.c to avoid a memory leak and to exit cleanly
1003 if user attempts to run it on an 8-bit display.
1004 Updated contrib/gregbook
1005 Use png_malloc instead of png_zalloc to allocate palette in pngset.c
1006 Updated makefile.ibmc
1007 Added some typecasts to eliminate gcc 3.0 warnings. Changed prototypes
1008 of png_write_oFFS width and height from png_uint_32 to png_int_32.
1009 Updated example.c
1010 Revised prototypes for png_debug_malloc and png_debug_free in pngtest.c
1011version 1.2.0beta5 [August 8, 2001]
1012 Revised contrib/gregbook
1013 Revised makefile.gcmmx
1014 Revised pnggccrd.c to conditionally compile some thread-unsafe code only
1015 when PNG_THREAD_UNSAFE_OK is defined.
1016 Added tests to prevent pngwutil.c from writing a bKGD or tRNS chunk with
1017 value exceeding 2^bit_depth-1
1018 Revised makefile.sgi and makefile.sggcc
1019 Replaced calls to fprintf(stderr,...) with png_warning() in pnggccrd.c
1020 Removed restriction that do_invert_mono only operate on 1-bit opaque files
1021
1022version 1.2.0 [September 1, 2001]
1023 Changed a png_warning() to png_debug() in pnggccrd.c
1024 Fixed contrib/gregbook/rpng-x.c, rpng2-x.c to avoid crash with XFreeGC().
1025version 1.2.1beta1 [October 19, 2001]
1026 Revised makefile.std in contrib/pngminus
1027 Include background_1 in png_struct regardless of gamma support.
1028 Revised makefile.netbsd and makefile.macosx, added makefile.darwin.
1029 Revised example.c to provide more details about using row_callback().
1030version 1.2.1beta2 [October 25, 2001]
1031 Added type cast to each NULL appearing in a function call, except for
1032 WINCE functions.
1033 Added makefile.so9.
1034version 1.2.1beta3 [October 27, 2001]
1035 Removed type casts from all NULLs.
1036 Simplified png_create_struct_2().
1037version 1.2.1beta4 [November 7, 2001]
1038 Revised png_create_info_struct() and png_creat_struct_2().
1039 Added error message if png_write_info() was omitted.
1040 Type cast NULLs appearing in function calls when _NO_PROTO or
1041 PNG_TYPECAST_NULL is defined.
1042version 1.2.1rc1 [November 24, 2001]
1043 Type cast NULLs appearing in function calls except when PNG_NO_TYPECAST_NULL
1044 is defined.
1045 Changed typecast of "size" argument to png_size_t in pngmem.c calls to
1046 the user malloc_fn, to agree with the prototype in png.h
1047 Added a pop/push operation to pnggccrd.c, to preserve Eflag (Maxim Sobolev)
1048 Updated makefile.sgi to recognize LIBPATH and INCPATH.
1049 Updated various makefiles so "make clean" does not remove previous major
1050 version of the shared library.
1051version 1.2.1rc2 [December 4, 2001]
1052 Always allocate 256-entry internal palette, hist, and trans arrays, to
1053 avoid out-of-bounds memory reference caused by invalid PNG datastreams.
1054 Added a check for prefix_length > data_length in iCCP chunk handler.
1055
1056version 1.2.1 [December 7, 2001]
1057 None.
1058version 1.2.2beta1 [February 22, 2002]
1059 Fixed a bug with reading the length of iCCP profiles (Larry Reeves).
1060 Revised makefile.linux, makefile.gcmmx, and makefile.sgi to generate
1061 libpng.a, libpng12.so (not libpng.so.3), and libpng12/png.h
1062 Revised makefile.darwin to remove "-undefined suppress" option.
1063 Added checks for gamma and chromaticity values over 21474.83, which exceed
1064 the limit for PNG unsigned 32-bit integers when encoded.
1065 Revised calls to png_create_read_struct() and png_create_write_struct()
1066 for simpler debugging.
1067 Revised png_zalloc() so zlib handles errors (uses PNG_FLAG_MALLOC_NULL_MEM_OK)
1068version 1.2.2beta2 [February 23, 2002]
1069 Check chunk_length and idat_size for invalid (over PNG_MAX_UINT) lengths.
1070 Check for invalid image dimensions in png_get_IHDR.
1071 Added missing "fi;" in the install target of the SGI makefiles.
1072 Added install-static to all makefiles that make shared libraries.
1073 Always do gamma compensation when image is partially transparent.
1074version 1.2.2beta3 [March 7, 2002]
1075 Compute background.gray and background_1.gray even when color_type is RGB
1076 in case image gets reduced to gray later.
1077 Modified shared-library makefiles to install pkgconfig/libpngNN.pc.
1078 Export (with PNGAPI) png_zalloc, png_zfree, and png_handle_as_unknown
1079 Removed unused png_write_destroy_info prototype from png.h
1080 Eliminated incorrect use of width_mmx from pnggccrd.c in pixel_bytes == 8 case
1081 Added install-shared target to all makefiles that make shared libraries.
1082 Stopped a double free of palette, hist, and trans when not using free_me.
1083 Added makefile.32sunu for Sun Ultra 32 and makefile.64sunu for Sun Ultra 64.
1084version 1.2.2beta4 [March 8, 2002]
1085 Compute background.gray and background_1.gray even when color_type is RGB
1086 in case image gets reduced to gray later (Jason Summers).
1087 Relocated a misplaced /bin/rm in the "install-shared" makefile targets
1088 Added PNG_1_0_X macro which can be used to build a 1.0.x-compatible library.
1089version 1.2.2beta5 [March 26, 2002]
1090 Added missing PNGAPI to several function definitions.
1091 Check for invalid bit_depth or color_type in png_get_IHDR(), and
1092 check for missing PLTE or IHDR in png_push_read_chunk() (Matthias Clasen).
1093 Revised iTXt support to accept NULL for lang and lang_key.
1094 Compute gamma for color components of background even when color_type is gray.
1095 Changed "()" to "{}" in scripts/libpng.pc.in.
1096 Revised makefiles to put png.h and pngconf.h only in $prefix/include/libpngNN
1097 Revised makefiles to make symlink to libpng.so.NN in addition to libpngNN.so
1098version 1.2.2beta6 [March 31, 2002]
1099version 1.0.13beta1 [March 31, 2002]
1100 Prevent png_zalloc() from trying to memset memory that it failed to acquire.
1101 Add typecasts of PNG_MAX_UINT in pngset_cHRM_fixed() (Matt Holgate).
1102 Ensure that the right function (user or default) is used to free the
1103 png_struct after an error in png_create_read_struct_2().
1104version 1.2.2rc1 [April 7, 2002]
1105version 1.0.13rc1 [April 7, 2002]
1106 Save the ebx register in pnggccrd.c (Sami Farin)
1107 Add "mem_ptr = png_ptr->mem_ptr" in png_destroy_write_struct() (Paul Gardner).
1108 Updated makefiles to put headers in include/libpng and remove old include/*.h.
1109
1110version 1.2.2 [April 15, 2002]
1111version 1.0.13 [April 15, 2002]
1112 Revised description of png_set_filter() in libpng.3/libpng.txt.
1113 Revised makefile.netbsd and added makefile.neNNbsd and makefile.freebsd
1114version 1.0.13patch01 [April 17, 2002]
1115version 1.2.2patch01 [April 17, 2002]
1116 Changed ${PNGMAJ}.${PNGVER} bug to ${PNGVER} in makefile.sgi and makefile.sggcc
1117 Fixed VER -> PNGVER typo in makefile.macosx and added install-static to install
1118 Added install: target to makefile.32sunu and makefile.64sunu
1119version 1.0.13patch03 [April 18, 2002]
1120version 1.2.2patch03 [April 18, 2002]
1121 Revised 15 makefiles to link libpng.a to libpngNN.a and the include libpng
1122 subdirectory to libpngNN subdirectory without the full pathname.
1123 Moved generation of libpng.pc from "install" to "all" in 15 makefiles.
1124version 1.2.3rc1 [April 28, 2002]
1125 Added install-man target to 15 makefiles (Dimitri Papadopolous-Orfanos).
1126 Added $(DESTDIR) feature to 24 makefiles (Tim Mooney)
1127 Fixed bug with $prefix, should be $(prefix) in makefile.hpux.
1128 Updated cygwin-specific portion of pngconf.h and revised makefile.cygwin
1129 Added a link from libpngNN.pc to libpng.pc in 15 makefiles.
1130 Added links from include/libpngNN/*.h to include/*.h in 24 makefiles.
1131 Revised makefile.darwin to make relative links without full pathname.
1132 Added setjmp() at the end of png_create_*_struct_2() in case user forgets
1133 to put one in their application.
1134 Restored png_zalloc() and png_zfree() prototypes to version 1.2.1 and
1135 removed them from module definition files.
1136version 1.2.3rc2 [May 1, 2002]
1137 Fixed bug in reporting number of channels in pngget.c and pngset.c,
1138 that was introduced in version 1.2.2beta5.
1139 Exported png_zalloc(), png_zfree(), png_default_read(), png_default_write(),
1140 png_default_flush(), and png_push_fill_buffer() and included them in
1141 module definition files.
1142 Added "libpng.pc" dependency to the "install-shared" target in 15 makefiles.
1143version 1.2.3rc3 [May 1, 2002]
1144 Revised prototype for png_default_flush()
1145 Remove old libpng.pc and libpngNN.pc before installing new ones.
1146version 1.2.3rc4 [May 2, 2002]
1147 Typos in *.def files (png_default_read|write -> png_default_read|write_data)
1148 In makefiles, changed rm libpng.NN.pc to rm libpngNN.pc
1149 Added libpng-config and libpngNN-config and modified makefiles to install them.
1150 Changed $(MANPATH) to $(DESTDIR)$(MANPATH) in makefiles
1151 Added "Win32 DLL VB" configuration to projects/msvc/libpng.dsp
1152version 1.2.3rc5 [May 11, 2002]
1153 Changed "error" and "message" in prototypes to "error_message" and
1154 "warning_message" to avoid namespace conflict.
1155 Revised 15 makefiles to build libpng-config from libpng-config-*.in
1156 Once more restored png_zalloc and png_zfree to regular nonexported form.
1157 Restored png_default_read|write_data, png_default_flush, png_read_fill_buffer
1158 to nonexported form, but with PNGAPI, and removed them from module def files.
1159version 1.2.3rc6 [May 14, 2002]
1160 Removed "PNGAPI" from png_zalloc() and png_zfree() in png.c
1161 Changed "Gz" to "Gd" in projects/msvc/libpng.dsp and zlib.dsp.
1162 Removed leftover libpng-config "sed" script from four makefiles.
1163 Revised libpng-config creating script in 16 makefiles.
1164
1165version 1.2.3 [May 22, 2002]
1166 Revised libpng-config target in makefile.cygwin.
1167 Removed description of png_set_mem_fn() from documentation.
1168 Revised makefile.freebsd.
1169 Minor cosmetic changes to 15 makefiles, e.g., $(DI) = $(DESTDIR)/$(INCDIR).
1170 Revised projects/msvc/README.txt
1171 Changed -lpng to -lpngNN in LDFLAGS in several makefiles.
1172version 1.2.4beta1 [May 24, 2002]
1173 Added libpng.pc and libpng-config to "all:" target in 16 makefiles.
1174 Fixed bug in 16 makefiles: $(DESTDIR)/$(LIBPATH) to $(DESTDIR)$(LIBPATH)
1175 Added missing "\" before closing double quote in makefile.gcmmx.
1176 Plugged various memory leaks; added png_malloc_warn() and png_set_text_2()
1177 functions.
1178version 1.2.4beta2 [June 25, 2002]
1179 Plugged memory leak of png_ptr->current_text (Matt Holgate).
1180 Check for buffer overflow before reading CRC in pngpread.c (Warwick Allison)
1181 Added -soname to the loader flags in makefile.dec, makefile.sgi, and
1182 makefile.sggcc.
1183 Added "test-installed" target to makefile.linux, makefile.gcmmx,
1184 makefile.sgi, and makefile.sggcc.
1185version 1.2.4beta3 [June 28, 2002]
1186 Plugged memory leak of row_buf in pngtest.c when there is a png_error().
1187 Detect buffer overflow in pngpread.c when IDAT is corrupted with extra data.
1188 Added "test-installed" target to makefile.32sunu, makefile.64sunu,
1189 makefile.beos, makefile.darwin, makefile.dec, makefile.macosx,
1190 makefile.solaris, makefile.hpux, makefile.hpgcc, and makefile.so9.
1191version 1.2.4rc1 and 1.0.14rc1 [July 2, 2002]
1192 Added "test-installed" target to makefile.cygwin and makefile.sco.
1193 Revised pnggccrd.c to be able to back out version 1.0.x via PNG_1_0_X macro.
1194
1195version 1.2.4 and 1.0.14 [July 8, 2002]
1196 Changed png_warning() to png_error() when width is too large to process.
1197version 1.2.4patch01 [July 20, 2002]
1198 Revised makefile.cygwin to use DLL number 12 instead of 13.
1199version 1.2.5beta1 [August 6, 2002]
1200 Added code to contrib/gregbook/readpng2.c to ignore unused chunks.
1201 Replaced toucan.png in contrib/gregbook (it has been corrupt since 1.0.11)
1202 Removed some stray *.o files from contrib/gregbook.
1203 Changed png_error() to png_warning() about "Too much data" in pngpread.c
1204 and about "Extra compressed data" in pngrutil.c.
1205 Prevent png_ptr->pass from exceeding 7 in png_push_finish_row().
1206 Updated makefile.hpgcc
1207 Updated png.c and pnggccrd.c handling of return from png_mmx_support()
1208version 1.2.5beta2 [August 15, 2002]
1209 Only issue png_warning() about "Too much data" in pngpread.c when avail_in
1210 is nonzero.
1211 Updated makefiles to install a separate libpng.so.3 with its own rpath.
1212version 1.2.5rc1 and 1.0.15rc1 [August 24, 2002]
1213 Revised makefiles to not remove previous minor versions of shared libraries.
1214version 1.2.5rc2 and 1.0.15rc2 [September 16, 2002]
1215 Revised 13 makefiles to remove "-lz" and "-L$(ZLIBLIB)", etc., from shared
1216 library loader directive.
1217 Added missing "$OBJSDLL" line to makefile.gcmmx.
1218 Added missing "; fi" to makefile.32sunu.
1219version 1.2.5rc3 and 1.0.15rc3 [September 18, 2002]
1220 Revised libpng-config script.
1221
1222version 1.2.5 and 1.0.15 [October 3, 2002]
1223 Revised makefile.macosx, makefile.darwin, makefile.hpgcc, and makefile.hpux,
1224 and makefile.aix.
1225 Relocated two misplaced PNGAPI lines in pngtest.c
1226version 1.2.6beta1 [October 22, 2002]
1227 Commented out warning about uninitialized mmx_support in pnggccrd.c.
1228 Changed "IBMCPP__" flag to "__IBMCPP__" in pngconf.h.
1229 Relocated two more misplaced PNGAPI lines in pngtest.c
1230 Fixed memory overrun bug in png_do_read_filler() with 16-bit datastreams,
1231 introduced in version 1.0.2.
1232 Revised makefile.macosx, makefile.dec, makefile.aix, and makefile.32sunu.
1233version 1.2.6beta2 [November 1, 2002]
1234 Added libpng-config "--ldopts" output.
1235 Added "AR=ar" and "ARFLAGS=rc" and changed "ar rc" to "$(AR) $(ARFLAGS)"
1236 in makefiles.
1237version 1.2.6beta3 [July 18, 2004]
1238 Reverted makefile changes from version 1.2.6beta2 and some of the changes
1239 from version 1.2.6beta1; these will be postponed until version 1.2.7.
1240 Version 1.2.6 is going to be a simple bugfix release.
1241 Changed the one instance of "ln -sf" to "ln -f -s" in each Sun makefile.
1242 Fixed potential overrun in pngerror.c by using strncpy instead of memcpy.
1243 Added "#!/bin/sh" at the top of configure, for recognition of the
1244 'x' flag under Cygwin (Cosmin).
1245 Optimized vacuous tests that silence compiler warnings, in png.c (Cosmin).
1246 Added support for PNG_USER_CONFIG, in pngconf.h (Cosmin).
1247 Fixed the special memory handler for Borland C under DOS, in pngmem.c
1248 (Cosmin).
1249 Removed some spurious assignments in pngrutil.c (Cosmin).
1250 Replaced 65536 with 65536L, and 0xffff with 0xffffL, to silence warnings
1251 on 16-bit platforms (Cosmin).
1252 Enclosed shift op expressions in parentheses, to silence warnings (Cosmin).
1253 Used proper type png_fixed_point, to avoid problems on 16-bit platforms,
1254 in png_handle_sRGB() (Cosmin).
1255 Added compression_type to png_struct, and optimized the window size
1256 inside the deflate stream (Cosmin).
1257 Fixed definition of isnonalpha(), in pngerror.c and pngrutil.c (Cosmin).
1258 Fixed handling of unknown chunks that come after IDAT (Cosmin).
1259 Allowed png_error() and png_warning() to work even if png_ptr == NULL
1260 (Cosmin).
1261 Replaced row_info->rowbytes with row_bytes in png_write_find_filter()
1262 (Cosmin).
1263 Fixed definition of PNG_LIBPNG_VER_DLLNUM (Simon-Pierre).
1264 Used PNG_LIBPNG_VER and PNG_LIBPNG_VER_STRING instead of the hardcoded
1265 values in png.c (Simon-Pierre, Cosmin).
1266 Initialized png_libpng_ver[] with PNG_LIBPNG_VER_STRING (Simon-Pierre).
1267 Replaced PNG_LIBPNG_VER_MAJOR with PNG_LIBPNG_VER_DLLNUM in png.rc
1268 (Simon-Pierre).
1269 Moved the definition of PNG_HEADER_VERSION_STRING near the definitions
1270 of the other PNG_LIBPNG_VER_... symbols in png.h (Cosmin).
1271 Relocated #ifndef PNGAPI guards in pngconf.h (Simon-Pierre, Cosmin).
1272 Updated scripts/makefile.vc(a)win32 (Cosmin).
1273 Updated the MSVC project (Simon-Pierre, Cosmin).
1274 Updated the Borland C++ Builder project (Cosmin).
1275 Avoided access to asm_flags in pngvcrd.c, if PNG_1_0_X is defined (Cosmin).
1276 Commented out warning about uninitialized mmx_support in pngvcrd.c (Cosmin).
1277 Removed scripts/makefile.bd32 and scripts/pngdef.pas (Cosmin).
1278 Added extra guard around inclusion of Turbo C memory headers, in pngconf.h
1279 (Cosmin).
1280 Renamed projects/msvc/ to projects/visualc6/, and projects/borland/ to
1281 projects/cbuilder5/ (Cosmin).
1282 Moved projects/visualc6/png32ms.def to scripts/pngw32.def,
1283 and projects/visualc6/png.rc to scripts/pngw32.rc (Cosmin).
1284 Added projects/visualc6/pngtest.dsp; removed contrib/msvctest/ (Cosmin).
1285 Changed line endings to DOS style in cbuilder5 and visualc6 files, even
1286 in the tar.* distributions (Cosmin).
1287 Updated contrib/visupng/VisualPng.dsp (Cosmin).
1288 Updated contrib/visupng/cexcept.h to version 2.0.0 (Cosmin).
1289 Added a separate distribution with "configure" and supporting files (Junichi).
1290version 1.2.6beta4 [July 28, 2004]
1291 Added user ability to change png_size_t via a PNG_SIZE_T macro.
1292 Added png_sizeof() and png_convert_size() functions.
1293 Added PNG_SIZE_MAX (maximum value of a png_size_t variable.
1294 Added check in png_malloc_default() for (size_t)size != (png_uint_32)size
1295 which would indicate an overflow.
1296 Changed sPLT failure action from png_error to png_warning and abandon chunk.
1297 Changed sCAL and iCCP failures from png_error to png_warning and abandon.
1298 Added png_get_uint_31(png_ptr, buf) function.
1299 Added PNG_UINT_32_MAX macro.
1300 Renamed PNG_MAX_UINT to PNG_UINT_31_MAX.
1301 Made png_zalloc() issue a png_warning and return NULL on potential
1302 overflow.
1303 Turn on PNG_NO_ZALLOC_ZERO by default in version 1.2.x
1304 Revised "clobber list" in pnggccrd.c so it will compile under gcc-3.4.
1305 Revised Borland portion of png_malloc() to return NULL or issue
1306 png_error() according to setting of PNG_FLAG_MALLOC_NULL_MEM_OK.
1307 Added PNG_NO_SEQUENTIAL_READ_SUPPORTED macro to conditionally remove
1308 sequential read support.
1309 Added some "#if PNG_WRITE_SUPPORTED" blocks.
1310 Removed some redundancy with #ifdef/#endif in png_malloc_default().
1311 Use png_malloc instead of png_zalloc to allocate the pallete.
1312version 1.0.16rc1 and 1.2.6rc1 [August 4, 2004]
1313 Fixed buffer overflow vulnerability (CVE-2004-0597) in png_handle_tRNS().
1314 Fixed NULL dereference vulnerability (CVE-2004-0598) in png_handle_iCCP().
1315 Fixed integer overflow vulnerability (CVE-2004-0599) in png_read_png().
1316 Fixed some harmless bugs in png_handle_sBIT, etc, that would cause
1317 duplicate chunk types to go undetected.
1318 Fixed some timestamps in the -config version
1319 Rearranged order of processing of color types in png_handle_tRNS().
1320 Added ROWBYTES macro to calculate rowbytes without integer overflow.
1321 Updated makefile.darwin and removed makefile.macosx from scripts directory.
1322 Imposed default one million column, one-million row limits on the image
1323 dimensions, and added png_set_user_limits() function to override them.
1324 Revised use of PNG_SET_USER_LIMITS_SUPPORTED macro.
1325 Fixed wrong cast of returns from png_get_user_width|height_max().
1326 Changed some "keep the compiler happy" from empty statements to returns,
1327 Revised libpng.txt to remove 1.2.x stuff from the 1.0.x distribution
1328version 1.0.16rc2 and 1.2.6rc2 [August 7, 2004]
1329 Revised makefile.darwin and makefile.solaris. Removed makefile.macosx.
1330 Revised pngtest's png_debug_malloc() to use png_malloc() instead of
1331 png_malloc_default() which is not supposed to be exported.
1332 Fixed off-by-one error in one of the conversions to PNG_ROWBYTES() in
1333 pngpread.c. Bug was introduced in 1.2.6rc1.
1334 Fixed bug in RGB to RGBX transformation introduced in 1.2.6rc1.
1335 Fixed old bug in RGB to Gray transformation.
1336 Fixed problem with 64-bit compilers by casting arguments to abs()
1337 to png_int_32.
1338 Changed "ln -sf" to "ln -f -s" in three makefiles (solaris, sco, so9).
1339 Changed "HANDLE_CHUNK_*" to "PNG_HANDLE_CHUNK_*" (Cosmin)
1340 Added "-@/bin/rm -f $(DL)/$(LIBNAME).so.$(PNGMAJ)" to 15 *NIX makefiles.
1341 Added code to update the row_info->colortype in png_do_read_filler() (MSB).
1342version 1.0.16rc3 and 1.2.6rc3 [August 9, 2004]
1343 Eliminated use of "abs()" in testing cHRM and gAMA values, to avoid
1344 trouble with some 64-bit compilers. Created PNG_OUT_OF_RANGE() macro.
1345 Revised documentation of png_set_keep_unknown_chunks().
1346 Check handle_as_unknown status in pngpread.c, as in pngread.c previously.
1347 Moved "PNG_HANDLE_CHUNK_*" macros out of PNG_INTERNAL section of png.h
1348 Added "rim" definitions for CONST4 and CONST6 in pnggccrd.c
1349version 1.0.16rc4 and 1.2.6rc4 [August 10, 2004]
1350 Fixed mistake in pngtest.c introduced in 1.2.6rc2 (declaration of
1351 "pinfo" was out of place).
1352version 1.0.16rc5 and 1.2.6rc5 [August 10, 2004]
1353 Moved "PNG_HANDLE_CHUNK_*" macros out of PNG_ASSEMBLER_CODE_SUPPORTED
1354 section of png.h where they were inadvertently placed in version rc3.
1355
1356version 1.2.6 and 1.0.16 [August 15, 2004]
1357 Revised pngtest so memory allocation testing is only done when PNG_DEBUG==1.
1358version 1.2.7beta1 [August 26, 2004]
1359 Removed unused pngasmrd.h file.
1360 Removed references to uu.net for archived files. Added references to
1361 PNG Spec (second edition) and the PNG ISO/IEC Standard.
1362 Added "test-dd" target in 15 makefiles, to run pngtest in DESTDIR.
1363 Fixed bug with "optimized window size" in the IDAT datastream, that
1364 causes libpng to write PNG files with incorrect zlib header bytes.
1365version 1.2.7beta2 [August 28, 2004]
1366 Fixed bug with sCAL chunk and big-endian machines (David Munro).
1367 Undid new code added in 1.2.6rc2 to update the color_type in
1368 png_set_filler().
1369 Added png_set_add_alpha() that updates color type.
1370version 1.0.17rc1 and 1.2.7rc1 [September 4, 2004]
1371 Revised png_set_strip_filler() to not remove alpha if color_type has alpha.
1372
1373version 1.2.7 and 1.0.17 [September 12, 2004]
1374 Added makefile.hp64
1375 Changed projects/msvc/png32ms.def to scripts/png32ms.def in makefile.cygwin
1376version 1.2.8beta1 [November 1, 2004]
1377 Fixed bug in png_text_compress() that would fail to complete a large block.
1378 Fixed bug, introduced in libpng-1.2.7, that overruns a buffer during
1379 strip alpha operation in png_do_strip_filler().
1380 Added PNG_1_2_X definition in pngconf.h
1381 Comment out with #ifdef/#endif png_info_init in png.c and png_read_init
1382 in pngread.c (as of 1.3.0)
1383version 1.2.8beta2 [November 2, 2004]
1384 Reduce color_type to a nonalpha type after strip alpha operation in
1385 png_do_strip_filler().
1386version 1.2.8beta3 [November 3, 2004]
1387 Revised definitions of PNG_MAX_UINT_32, PNG_MAX_SIZE, and PNG_MAXSUM
1388version 1.2.8beta4 [November 12, 2004]
1389 Fixed (again) definition of PNG_LIBPNG_VER_DLLNUM in png.h (Cosmin).
1390 Added PNG_LIBPNG_BUILD_PRIVATE in png.h (Cosmin).
1391 Set png_ptr->zstream.data_type to Z_BINARY, to avoid unnecessary detection
1392 of data type in deflate (Cosmin).
1393 Deprecated but continue to support SPECIALBUILD and PRIVATEBUILD in favor of
1394 PNG_LIBPNG_BUILD_SPECIAL_STRING and PNG_LIBPNG_BUILD_PRIVATE_STRING.
1395version 1.2.8beta5 [November 20, 2004]
1396 Use png_ptr->flags instead of png_ptr->transformations to pass
1397 PNG_STRIP_ALPHA info to png_do_strip_filler(), to preserve ABI
1398 compatibility.
1399 Revised handling of SPECIALBUILD, PRIVATEBUILD,
1400 PNG_LIBPNG_BUILD_SPECIAL_STRING and PNG_LIBPNG_BUILD_PRIVATE_STRING.
1401version 1.2.8rc1 [November 24, 2004]
1402 Moved handling of BUILD macros from pngconf.h to png.h
1403 Added definition of PNG_LIBPNG_BASE_TYPE in png.h, inadvertently
1404 omitted from beta5.
1405 Revised scripts/pngw32.rc
1406 Despammed mailing addresses by masking "@" with "at".
1407 Inadvertently installed a supposedly faster test version of pngrutil.c
1408version 1.2.8rc2 [November 26, 2004]
1409 Added two missing "\" in png.h
1410 Change tests in pngread.c and pngpread.c to
1411 if (png_ptr->transformations || (png_ptr->flags&PNG_FLAG_STRIP_ALPHA))
1412 png_do_read_transformations(png_ptr);
1413version 1.2.8rc3 [November 28, 2004]
1414 Reverted pngrutil.c to version libpng-1.2.8beta5.
1415 Added scripts/makefile.elf with supporting code in pngconf.h for symbol
1416 versioning (John Bowler).
1417version 1.2.8rc4 [November 29, 2004]
1418 Added projects/visualc7 (Simon-pierre).
1419version 1.2.8rc5 [November 29, 2004]
1420 Fixed new typo in scripts/pngw32.rc
1421
1422version 1.0.18, 1.2.8 [December 3, 2004]
1423 Removed projects/visualc7, added projects/visualc71.
1424
1425version 1.2.9beta1 [February 21, 2006]
1426
1427 Initialized some structure members in pngwutil.c to avoid gcc-4.0.0 complaints
1428 Revised man page and libpng.txt to make it clear that one should not call
1429 png_read_end or png_write_end after png_read_png or png_write_png.
1430 Updated references to png-mng-implement mailing list.
1431 Fixed an incorrect typecast in pngrutil.c
1432 Added PNG_NO_READ_SUPPORTED conditional for making a write-only library.
1433 Added PNG_NO_WRITE_INTERLACING_SUPPORTED conditional.
1434 Optimized alpha-inversion loops in pngwtran.c
1435 Moved test for nonzero gamma outside of png_build_gamma_table() in pngrtran.c
1436 Make sure num_trans is <= 256 before copying data in png_set_tRNS().
1437 Make sure num_palette is <= 256 before copying data in png_set_PLTE().
1438 Interchanged order of write_swap_alpha and write_invert_alpha transforms.
1439 Added parentheses in the definition of PNG_LIBPNG_BUILD_TYPE (Cosmin).
1440 Optimized zlib window flag (CINFO) in contrib/pngsuite/*.png (Cosmin).
1441 Updated scripts/makefile.bc32 for Borland C++ 5.6 (Cosmin).
1442 Exported png_get_uint_32, png_save_uint_32, png_get_uint_16, png_save_uint_16,
1443 png_get_int_32, png_save_int_32, png_get_uint_31 (Cosmin).
1444 Added type cast (png_byte) in png_write_sCAL() (Cosmin).
1445 Fixed scripts/makefile.cygwin (Christian Biesinger, Cosmin).
1446 Default iTXt support was inadvertently enabled.
1447
1448version 1.2.9beta2 [February 21, 2006]
1449
1450 Check for png_rgb_to_gray and png_gray_to_rgb read transformations before
1451 checking for png_read_dither in pngrtran.c
1452 Revised checking of chromaticity limits to accommodate extended RGB
1453 colorspace (John Denker).
1454 Changed line endings in some of the project files to CRLF, even in the
1455 "Unix" tar distributions (Cosmin).
1456 Made png_get_int_32 and png_save_int_32 always available (Cosmin).
1457 Updated scripts/pngos2.def, scripts/pngw32.def and projects/wince/png32ce.def
1458 with the newly exported functions.
1459 Eliminated distributions without the "configure" script.
1460 Updated INSTALL instructions.
1461
1462version 1.2.9beta3 [February 24, 2006]
1463
1464 Fixed CRCRLF line endings in contrib/visupng/VisualPng.dsp
1465 Made libpng.pc respect EXEC_PREFIX (D. P. Kreil, J. Bowler)
1466 Removed reference to pngasmrd.h from Makefile.am
1467 Renamed CHANGES to ChangeLog.
1468 Renamed LICENSE to COPYING.
1469 Renamed ANNOUNCE to NEWS.
1470 Created AUTHORS file.
1471
1472version 1.2.9beta4 [March 3, 2006]
1473
1474 Changed definition of PKGCONFIG from $prefix/lib to $libdir in configure.ac
1475 Reverted to filenames LICENSE and ANNOUNCE; removed AUTHORS and COPYING.
1476 Removed newline from the end of some error and warning messages.
1477 Removed test for sqrt() from configure.ac and configure.
1478 Made swap tables in pngtrans.c PNG_CONST (Carlo Bramix).
1479 Disabled default iTXt support that was inadvertently enabled in
1480 libpng-1.2.9beta1.
1481 Added "OS2" to list of systems that don't need underscores, in pnggccrd.c
1482 Removed libpng version and date from *.c files.
1483
1484version 1.2.9beta5 [March 4, 2006]
1485 Removed trailing blanks from source files.
1486 Put version and date of latest change in each source file, and changed
1487 copyright year accordingly.
1488 More cleanup of configure.ac, Makefile.am, and associated scripts.
1489 Restored scripts/makefile.elf which was inadvertently deleted.
1490
1491version 1.2.9beta6 [March 6, 2006]
1492 Fixed typo (RELEASE) in configuration files.
1493
1494version 1.2.9beta7 [March 7, 2006]
1495 Removed libpng.vers and libpng.sym from libpng12_la_SOURCES in Makefile.am
1496 Fixed inconsistent #ifdef's around png_sig_bytes() and png_set_sCAL_s()
1497 in png.h.
1498 Updated makefile.elf as suggested by debian.
1499 Made cosmetic changes to some makefiles, adding LN_SF and other macros.
1500 Made some makefiles accept "exec_prefix".
1501
1502version 1.2.9beta8 [March 9, 2006]
1503 Fixed some "#if defined (..." which should be "#if defined(..."
1504 Bug introduced in libpng-1.2.8.
1505 Fixed inconsistency in definition of png_default_read_data()
1506 Restored blank that was lost from makefile.sggcc "clean" target in beta7.
1507 Revised calculation of "current" and "major" for irix in ltmain.sh
1508 Changed "mkdir" to "MKDIR_P" in some makefiles.
1509 Separated PNG_EXPAND and PNG_EXPAND_tRNS.
1510 Added png_set_expand_gray_1_2_4_to_8() and deprecated
1511 png_set_gray_1_2_4_to_8() which also expands tRNS to alpha.
1512
1513version 1.2.9beta9 [March 10, 2006]
1514 Include "config.h" in pngconf.h when available.
1515 Added some checks for NULL png_ptr or NULL info_ptr (timeless)
1516
1517version 1.2.9beta10 [March 20, 2006]
1518 Removed extra CR from contrib/visualpng/VisualPng.dsw (Cosmin)
1519 Made pnggccrd.c PIC-compliant (Christian Aichinger).
1520 Added makefile.mingw (Wolfgang Glas).
1521 Revised pngconf.h MMX checking.
1522
1523version 1.2.9beta11 [March 22, 2006]
1524 Fixed out-of-order declaration in pngwrite.c that was introduced in beta9
1525 Simplified some makefiles by using LIBSO, LIBSOMAJ, and LIBSOVER macros.
1526
1527version 1.2.9rc1 [March 31, 2006]
1528 Defined PNG_USER_PRIVATEBUILD when including "pngusr.h" (Cosmin).
1529 Removed nonsensical assertion check from pngtest.c (Cosmin).
1530
1531version 1.2.9 [April 14, 2006]
1532 Revised makefile.beos and added "none" selector in ltmain.sh
1533
1534version 1.2.10beta1 [April 15, 2006]
1535 Renamed "config.h" to "png_conf.h" and revised Makefile.am to add
1536 -DPNG_BUILDING_LIBPNG to compile directive, and modified pngconf.h
1537 to include png_conf.h only when PNG_BUILDING_LIBPNG is defined.
1538
1539version 1.2.10beta2 [April 15, 2006]
1540 Manually updated Makefile.in and configure. Changed png_conf.h.in
1541 back to config.h.
1542
1543version 1.2.10beta3 [April 15, 2006]
1544 Change png_conf.h back to config.h in pngconf.h.
1545
1546version 1.2.10beta4 [April 16, 2006]
1547 Change PNG_BUILDING_LIBPNG to PNG_CONFIGURE_LIBPNG in config/Makefile*.
1548
1549version 1.2.10beta5 [April 16, 2006]
1550 Added a configure check for compiling assembler code in pnggccrd.c
1551
1552version 1.2.10beta6 [April 17, 2006]
1553 Revised the configure check for pnggccrd.c
1554 Moved -DPNG_CONFIGURE_LIBPNG into @LIBPNG_DEFINES@
1555 Added @LIBPNG_DEFINES@ to arguments when building libpng.sym
1556
1557version 1.2.10beta7 [April 18, 2006]
1558 Change "exec_prefix=$prefix" to "exec_prefix=$(prefix)" in makefiles.
1559
1560version 1.2.10rc1 [April 19, 2006]
1561 Ensure pngconf.h doesn't define both PNG_USE_PNGGCCRD and PNG_USE_PNGVCRD
1562 Fixed "LN_FS" typo in makefile.sco and makefile.solaris.
1563
1564version 1.2.10rc2 [April 20, 2006]
1565 Added a backslash between -DPNG_CONFIGURE_LIBPNG and -DPNG_NO_ASSEMBLER_CODE
1566 in configure.ac and configure
1567 Made the configure warning about versioned symbols less arrogant.
1568
1569version 1.2.10rc3 [April 21, 2006]
1570 Added a note in libpng.txt that png_set_sig_bytes(8) can be used when
1571 writing an embedded PNG without the 8-byte signature.
1572 Revised makefiles and configure to avoid making links to libpng.so.*
1573
1574version 1.2.10 [April 23, 2006]
1575 Reverted configure to "rc2" state.
1576
1577version 1.2.11beta1 [May 31, 2006]
1578 scripts/libpng.pc.in contained "configure" style version info and would
1579 not work with makefiles.
1580 The shared-library makefiles were linking to libpng.so.0 instead of
1581 libpng.so.3 compatibility as the library.
1582
1583version 1.2.11beta2 [June 2, 2006]
1584 Increased sprintf buffer from 50 to 52 chars in pngrutil.c to avoid
1585 buffer overflow.
1586 Fixed bug in example.c (png_set_palette_rgb -> png_set_palette_to_rgb)
1587
1588version 1.2.11beta3 [June 5, 2006]
1589 Prepended "#! /bin/sh" to ltmail.sh and contrib/pngminus/*.sh (Cosmin).
1590 Removed the accidental leftover Makefile.in~ (Cosmin).
1591 Avoided potential buffer overflow and optimized buffer in
1592 png_write_sCAL(), png_write_sCAL_s() (Cosmin).
1593 Removed the include directories and libraries from CFLAGS and LDFLAGS
1594 in scripts/makefile.gcc (Nelson A. de Oliveira, Cosmin).
1595
1596version 1.2.11beta4 [June 6, 2006]
1597 Allow zero-length IDAT chunks after the entire zlib datastream, but not
1598 after another intervening chunk type.
1599
1600version 1.0.19rc1, 1.2.11rc1 [June 13, 2006]
1601 Deleted extraneous square brackets from [config.h] in configure.ac
1602
1603version 1.0.19rc2, 1.2.11rc2 [June 14, 2006]
1604 Added prototypes for PNG_INCH_CONVERSIONS functions to png.h
1605 Revised INSTALL and autogen.sh
1606 Fixed typo in several makefiles (-W1 should be -Wl)
1607 Added typedef for png_int_32 and png_uint_32 on 64-bit systems.
1608
1609version 1.0.19rc3, 1.2.11rc3 [June 15, 2006]
1610 Removed the new typedefs for 64-bit systems (delay until version 1.4.0)
1611 Added one zero element to png_gamma_shift[] array in pngrtran.c to avoid
1612 reading out of bounds.
1613
1614version 1.0.19rc4, 1.2.11rc4 [June 15, 2006]
1615 Really removed the new typedefs for 64-bit systems.
1616
1617version 1.0.19rc5, 1.2.11rc5 [June 22, 2006]
1618 Removed png_sig_bytes entry from scripts/pngw32.def
1619
1620version 1.0.19, 1.2.11 [June 26, 2006]
1621 None.
1622
1623version 1.0.20, 1.2.12 [June 27, 2006]
1624 Really increased sprintf buffer from 50 to 52 chars in pngrutil.c to avoid
1625 buffer overflow.
1626
1627version 1.2.13beta1 [October 2, 2006]
1628 Removed AC_FUNC_MALLOC from configure.ac
1629 Work around Intel-Mac compiler bug by setting PNG_NO_MMX_CODE in pngconf.h
1630 Change "logical" to "bitwise" throughout documentation.
1631 Detect and fix attempt to write wrong iCCP profile length.
1632
1633version 1.0.21, 1.2.13 [November 14, 2006]
1634 Fix potential buffer overflow in sPLT chunk handler.
1635 Fix Makefile.am to not try to link to noexistent files.
1636 Check all exported functions for NULL png_ptr.
1637
1638version 1.2.14beta1 [November 17, 2006]
1639 Relocated three misplaced tests for NULL png_ptr.
1640 Built Makefile.in with automake-1.9.6 instead of 1.9.2.
1641 Build configure with autoconf-2.60 instead of 2.59
1642
1643version 1.2.14beta2 [November 17, 2006]
1644 Added some typecasts in png_zalloc().
1645
1646version 1.2.14rc1 [November 20, 2006]
1647 Changed "strtod" to "png_strtod" in pngrutil.c
1648
1649version 1.0.22, 1.2.14 [November 27, 2006]
1650 Added missing "$(srcdir)" in Makefile.am and Makefile.in
1651
1652version 1.2.15beta1 [December 3, 2006]
1653 Generated configure with autoconf-2.61 instead of 2.60
1654 Revised configure.ac to update libpng.pc and libpng-config.
1655
1656version 1.2.15beta2 [December 3, 2006]
1657 Always export MMX asm functions, just stubs if not building pnggccrd.c
1658
1659version 1.2.15beta3 [December 4, 2006]
1660 Add "png_bytep" typecast to profile while calculating length in pngwutil.c
1661
1662version 1.2.15beta4 [December 7, 2006]
1663 Added scripts/CMakeLists.txt
1664 Changed PNG_NO_ASSEMBLER_CODE to PNG_NO_MMX_CODE in scripts, like 1.4.0beta
1665
1666version 1.2.15beta5 [December 7, 2006]
1667 Changed some instances of PNG_ASSEMBLER_* to PNG_MMX_* in pnggccrd.c
1668 Revised scripts/CMakeLists.txt
1669
1670version 1.2.15beta6 [December 13, 2006]
1671 Revised scripts/CMakeLists.txt and configure.ac
1672
1673version 1.2.15rc1 [December 18, 2006]
1674 Revised scripts/CMakeLists.txt
1675
1676version 1.2.15rc2 [December 21, 2006]
1677 Added conditional #undef jmpbuf in pngtest.c to undo #define in AIX headers.
1678 Added scripts/makefile.nommx
1679
1680version 1.2.15rc3 [December 25, 2006]
1681 Fixed shared library numbering error that was introduced in 1.2.15beta6.
1682
1683version 1.2.15rc4 [December 27, 2006]
1684 Fixed handling of rgb_to_gray when png_ptr->color.gray isn't set.
1685
1686version 1.2.15rc5 [December 31, 2006]
1687 Revised handling of rgb_to_gray.
1688
1689version 1.0.23, 1.2.15 [January 5, 2007]
1690 Added some (unsigned long) typecasts in pngtest.c to avoid printing errors.
1691
1692version 1.2.16beta1 [January 6, 2007]
1693 Fix bugs in makefile.nommx
1694
1695version 1.2.16beta2 [January 16, 2007]
1696 Revised scripts/CMakeLists.txt
1697
1698version 1.0.24, 1.2.16 [January 31, 2007]
1699 No changes.
1700
1701version 1.2.17beta1 [March 6, 2007]
1702 Revised scripts/CMakeLists.txt to install both shared and static libraries.
1703 Deleted a redundant line from pngset.c.
1704
1705version 1.2.17beta2 [April 26, 2007]
1706 Relocated misplaced test for png_ptr == NULL in pngpread.c
1707 Change "==" to "&" for testing PNG_RGB_TO_GRAY_ERR & PNG_RGB_TO_GRAY_WARN
1708 flags.
1709 Changed remaining instances of PNG_ASSEMBLER_* to PNG_MMX_*
1710 Added pngerror() when write_IHDR fails in deflateInit2().
1711 Added "const" to some array declarations.
1712 Mention examples of libpng usage in the libpng*.txt and libpng.3 documents.
1713
1714version 1.2.17rc1 [May 4, 2007]
1715 No changes.
1716
1717version 1.2.17rc2 [May 8, 2007]
1718 Moved several PNG_HAVE_* macros out of PNG_INTERNAL because applications
1719 calling set_unknown_chunk_location() need them.
1720 Changed transformation flag from PNG_EXPAND_tRNS to PNG_EXPAND in
1721 png_set_expand_gray_1_2_4_to_8().
1722 Added png_ptr->unknown_chunk to hold working unknown chunk data, so it
1723 can be free'ed in case of error. Revised unknown chunk handling in
1724 pngrutil.c and pngpread.c to use this structure.
1725
1726version 1.2.17rc3 [May 8, 2007]
1727 Revised symbol-handling in configure script.
1728
1729version 1.2.17rc4 [May 10, 2007]
1730 Revised unknown chunk handling to avoid storing unknown critical chunks.
1731
1732version 1.0.25 [May 15, 2007]
1733version 1.2.17 [May 15, 2007]
1734 Added "png_ptr->num_trans=0" before error return in png_handle_tRNS,
1735 to eliminate a vulnerability (CVE-2007-2445, CERT VU#684664)
1736
1737version 1.0.26 [May 15, 2007]
1738version 1.2.18 [May 15, 2007]
1739 Reverted the libpng-1.2.17rc3 change to symbol-handling in configure script
1740
1741version 1.2.19beta1 [May 18, 2007]
1742 Changed "const static" to "static PNG_CONST" everywhere, mostly undoing
1743 change of libpng-1.2.17beta2. Changed other "const" to "PNG_CONST"
1744 Changed some handling of unused parameters, to avoid compiler warnings.
1745 "if (unused == NULL) return;" becomes "unused = unused".
1746
1747version 1.2.19beta2 [May 18, 2007]
1748 Only use the valid bits of tRNS value in png_do_expand() (Brian Cartier)
1749
1750version 1.2.19beta3 [May 19, 2007]
1751 Add some "png_byte" typecasts in png_check_keyword() and write new_key
1752 instead of key in zTXt chunk (Kevin Ryde).
1753
1754version 1.2.19beta4 [May 21, 2007]
1755 Add png_snprintf() function and use it in place of sprint() for improved
1756 defense against buffer overflows.
1757
1758version 1.2.19beta5 [May 21, 2007]
1759 Fixed png_handle_tRNS() to only use the valid bits of tRNS value.
1760 Changed handling of more unused parameters, to avoid compiler warnings.
1761 Removed some PNG_CONST in pngwutil.c to avoid compiler warnings.
1762
1763version 1.2.19beta6 [May 22, 2007]
1764 Added some #ifdef PNG_MMX_CODE_SUPPORTED where needed in pngvcrd.c
1765 Added a special "_MSC_VER" case that defines png_snprintf to _snprintf
1766
1767version 1.2.19beta7 [May 22, 2007]
1768 Squelched png_squelch_warnings() in pnggccrd.c and added
1769 an #ifdef PNG_MMX_CODE_SUPPORTED/#endif block around the declarations
1770 that caused the warnings that png_squelch_warnings was squelching.
1771
1772version 1.2.19beta8 [May 22, 2007]
1773 Removed __MMX__ from test in pngconf.h.
1774
1775version 1.2.19beta9 [May 23, 2007]
1776 Made png_squelch_warnings() available via PNG_SQUELCH_WARNINGS macro.
1777 Revised png_squelch_warnings() so it might work.
1778 Updated makefile.sgcc and makefile.solaris; added makefile.solaris-x86.
1779
1780version 1.2.19beta10 [May 24, 2007]
1781 Resquelched png_squelch_warnings(), use "__attribute__((used))" instead.
1782
1783version 1.2.19beta11 [May 28, 2007]
1784 Return 0 from png_get_sPLT() and png_get_unknown_chunks() if png_ptr is NULL;
1785 changed three remaining instances of png_strcpy() to png_strncpy() (David
1786 Hill).
1787 Make test for NULL row_buf at the beginning of png_do_read_transformations
1788 unconditional.
1789
1790version 1.2.19beta12 [May 28, 2007]
1791 Revised pnggccrd.c.
1792
1793version 1.2.19beta13 [June 14, 2007]
1794 Prefer PNG_USE_PNGVCRD when _MSC_VER is defined in pngconf.h
1795
1796version 1.2.19beta14 [June 16, 2007]
1797 Fix bug with handling of 16-bit transparency, introduced in 1.2.19beta2
1798
1799version 1.2.19beta15 [June 17, 2007]
1800 Revised pnggccrd.c.
1801
1802version 1.2.19beta16 [June 18, 2007]
1803 Revised pnggccrd.c again.
1804 Updated contrib/gregbook.
1805 Changed '#include "pnggccrd.c"' to 'include "$srcdir/pnggccrd.c"'
1806 in configure.ac
1807
1808version 1.2.19beta17 [June 19, 2007]
1809 Revised many of the makefiles, to set -DPNG_NO_MMX_CODE where needed
1810 and to not use -O3 unless -DPNG_NO_MMX_CODE is also set.
1811
1812version 1.2.19beta18 [June 23, 2007]
1813 Replaced some C++ style comments with C style comments in pnggccrd.c.
1814 Copied optimized C code from pnggccrd.c to pngrutil.c, removed dependency
1815 on pnggccrd.o from many makefiles.
1816 Added sl and dylib to list of extensions be installed by Makefile.am
1817
1818version 1.2.19beta19 [June 28, 2007]
1819 Fixed testing PNG_RGB_TO_GRAY_ERR & PNG_RGB_TO_GRAY_WARN in pngrtran.c
1820 More cleanup of pnggccrd.c and pngvcrd.c
1821
1822version 1.2.19beta20 [June 29, 2007]
1823 Rebuilt Makefile.in and configure using libtool-1.5.24.
1824 Fixed typo in pnggccrd.c
1825
1826version 1.2.19beta21 [June 30, 2007]
1827 More revision of pnggccrd.c
1828 Added "test" target to Makefile.in and Makefile.am
1829
1830version 1.2.19beta22 [July 3, 2007]
1831 Added info about pngrutil/pnggccrd/pngvcrd to png_get_header_version()
1832 Fix type definition of dummy_value_a, b in pnggccrd.c
1833
1834version 1.2.19beta23 [July 10, 2007]
1835 Revert change to type definition of dummy_value_a, b in pnggccrd.c
1836 Make sure __PIC__ is defined in pnggccrd.c when PIC is defined.
1837 Require gcc-4.1 or better to use PNG_HAVE_MMX_FILTER_ROW on x86_64 platforms
1838
1839version 1.2.19beta24 [July 14, 2007]
1840 Added PNG_NO_READ_FILTER, PNG_NO_WRITE_FILTER, PNG_NO_WARNING macros.
1841 Added contrib/pngminim to demonstrate building minimal encoder and decoder
1842
1843version 1.2.19beta25 [July 15, 2007]
1844 Removed the new PNG_NO_READ_FILTER macro since it would make the library
1845 unable to read valid PNG files, and filtering is at the heart of the
1846 PNG format.
1847
1848version 1.2.19beta26 [July 16, 2007]
1849 Changed "png_free(str)" to "png_free(png_ptr,str)" in pngrutil.c WinCE
1850 code (Yves Piguet). This bug was introduced in libpng-1.2.14.
1851 Updated scripts/CMakeLists.txt
1852 Relocated a misplaced #endif in pnggccrd.c
1853
1854version 1.2.19beta27 [July 17, 2007]
1855 Fixed incorrect stride and number of bytes copied (was 4 instead of
1856 6 bytes) in the cleanup loop of pnggccrd.c and pngvcrd.c for handling
1857 the end of 48-bit interlaced rows (Glenn R-P).
1858
1859version 1.2.19beta28 [July 19, 2007]
1860 Removed requirement for gcc-4.1 or better to use PNG_HAVE_MMX_FILTER_ROW
1861 on x86_64 platforms
1862 Added png_warning() in pngrutil.c for short iCCP, iTXt, sPLT, or zTXT chunks.
1863 Revised pngtest.c so warnings are displayed regardless of PNG_NO_STDIO.
1864
1865version 1.2.19beta29 [July 20, 2007]
1866 Fix typo in pnggccrd.c (%%eax should be %%ax in secondloop48)
1867
1868version 1.2.19beta30 [July 26, 2007]
1869 Revised pnggccrd.c
1870
1871version 1.2.19beta31 [July 27, 2007]
1872 Fix typos in pnggccrd.c
1873
1874version 1.0.27rc1 and 1.2.19rc1 [July 31, 2007]
1875 Disable PNG_MMX_CODE_SUPPORTED when PNG_ASSEMBLER_CODE_SUPPORTED is off.
1876 Enable PNG_MMX_READ_FILTER_* by default, except when gcc-3.x is being
1877 used (they were inadvertently disabled in libpng-1.2.19beta23).
1878 Fix some debugging statements in pnggccrd.c and pngrutil.c
1879 Added information about disabling the MMX code in libpng documentation.
1880
1881version 1.0.27rc2 and 1.2.19rc2 [August 4, 2007]
1882 Removed some "#if 0" blocks.
1883 Made a global struct local in pngvcrd.c to make it thread safe.
1884 Issue a png_error() if application attempts to transform a row tht
1885 has not been initialized.
1886
1887version 1.0.27rc3 and 1.2.19rc3 [August 9, 2007]
1888 Slightly revised pngvcrd.c
1889
1890version 1.0.27rc4 and 1.2.19rc4 [August 9, 2007]
1891 Revised pnggccrd.c debugging change of rc1, which was broken.
1892 Revised scripts/CMakeLists.txt
1893 Change default to PNG_NO_GLOBAL_ARRAYS for MSVC.
1894 Turn off PNG_FLAG_ROW_INIT flag when setting transforms that expand pixels.
1895
1896version 1.0.27rc5 and 1.2.19rc5 [August 10, 2007]
1897 Fix typo (missing '"') in pnggccrd.c
1898 Revise handling of png_strtod in recent versions of WINCE
1899
1900version 1.0.27rc6 and 1.2.19rc6 [August 15, 2007]
1901 Fix typo (missing ',') in contrib/gregbook/readpng2.c
1902 Undid row initialization error exit added to rc2 and rc4.
1903
1904version 1.0.27 and 1.2.19 [August 18, 2007]
1905 Conditionally restored row initialization error exit.
1906
1907version 1.2.20beta01 [August 19, 2007]
1908 Fixed problem with compiling pnggccrd.c on Intel-Apple platforms.
1909 Changed png_malloc() to png_malloc_warn() in png_set_sPLT().
1910 Added PNG_NO_ERROR_TEXT feature, with demo in contrib/pngminim
1911 Removed define PNG_WARN_UNINITIALIZED_ROW 1 /* 0: warning; 1: error */
1912 because it caused some trouble.
1913
1914version 1.2.20beta02 [August 20, 2007]
1915 Avoid compiling pnggccrd.c on Intel-Apple platforms.
1916
1917version 1.2.20beta03 [August 20, 2007]
1918 Added "/D PNG_NO_MMX_CODE" to the non-mmx builds of projects/visualc6
1919 and visualc71.
1920
1921version 1.2.20beta04 [August 21, 2007]
1922 Revised pngvcrd.c for improved efficiency (Steve Snyder).
1923
1924version 1.2.20rc1 [August 23, 2007]
1925 Revised pngconf.h to set PNG_NO_MMX_CODE for gcc-3.x compilers.
1926
1927version 1.2.20rc2 [August 27, 2007]
1928 Revised scripts/CMakeLists.txt
1929 Revised #ifdefs to ensure one and only one of pnggccrd.c, pngvcrd.c,
1930 or part of pngrutil.c is selected.
1931
1932version 1.2.20rc3 [August 30, 2007]
1933 Remove a little more code in pngwutil.c when PNG_NO_WRITE_FILTER is selected.
1934 Added /D _CRT_SECURE_NO_WARNINGS to visual6c and visualc71 projects.
1935 Compile png_mmx_support() in png.c even when PNG_NO_MMX_CODE is defined.
1936 Restored a "superfluous" #ifdef that was removed from 1.2.20rc2 pnggccrd.c,
1937 breaking the png_mmx_support() function.
1938
1939version 1.2.20rc4 [September 1, 2007]
1940 Removed Intel contributions (MMX, Optimized C).
1941
1942version 1.2.20rc5 [September 2, 2007]
1943 Restored configure and Makefile.in to rc3 and put a snippet of code in
1944 pnggccrd.c, to ensure configure makes the same PNG_NO_MMX_CODE selection
1945
1946version 1.2.20rc6 [September 2, 2007]
1947 Fixed bugs in scripts/CMakeLists.txt
1948 Removed pngvcrd.c references from msvc projects.
1949
1950version 1.0.28 and 1.2.20 [September 8, 2007]
1951 Removed "(NO READ SUPPORT)" from png_get_header_version() string.
1952
1953version 1.2.21beta1 [September 14, 2007]
1954 Fixed various mistakes reported by George Cook and Jeff Phillips:
1955 logical vs bitwise NOT in pngrtran.c, bug introduced in 1.2.19rc2
1956 16-bit cheap transparency expansion, bug introduced in 1.2.19beta2
1957 errors with sizeof(unknown_chunk.name), bugs introduced in 1.2.19beta11
1958 <= compare with unsigned var in pngset.c, should be ==.
1959
1960version 1.2.21beta2 [September 18, 2007]
1961 Removed some extraneous typecasts.
1962
1963version 1.2.21rc1 [September 25, 2007]
1964 Fixed potential out-of-bounds reads in png_handle_pCAL() and
1965 png_handle_ztXt() ("flayer" results reported by Tavis Ormandy).
1966
1967version 1.2.21rc2 [September 26, 2007]
1968 Fixed potential out-of-bounds reads in png_handle_sCAL(),
1969 png_handle_iTXt(), and png_push_read_tEXt().
1970 Remove some PNG_CONST declarations from pngwutil.c to avoid compiler warnings
1971 Revised makefiles to update paths in libpng.pc properly.
1972
1973version 1.2.21rc3 [September 27, 2007]
1974 Revised makefiles to update "Libs" in libpng.pc properly.
1975
1976version 1.0.29 and 1.2.21rc3 [October 4, 2007]
1977 No changes.
1978
1979version 1.2.22beta1 [October 4, 2007]
1980 Again, fixed logical vs bitwise NOT in pngrtran.c, bug introduced
1981 in 1.2.19rc2
1982
1983version 1.2.22beta2 [October 5, 2007]
1984 Fixed string length error in pngset.c (caused crashes while decoding iCCP)
1985 Add terminating NULL after each instance of png_strncpy().
1986
1987version 1.2.22beta3 [October 6, 2007]
1988 Fix two off-by-one terminating NULL after png_strncpy().
1989
1990version 1.2.22beta4 [October 7, 2007]
1991 Changed some 0 to '\0'.
1992
1993version 1.0.30rc1 and 1.2.22rc1 [October 8, 2007]
1994 No changes.
1995
1996version 1.0.30 and 1.2.22 [October 13, 2007]
1997 No changes.
1998
1999version 1.2.23beta01 [October 15, 2007]
2000 Reduced number of invocations of png_strlen() in pngset.c.
2001 Changed [azAZ09_] to [_abcde...89] in Makefile.am for better localization.
2002
2003version 1.2.23beta02 [October 16, 2007]
2004 Eliminated png_strncpy() and png_strcpy() (Pierre Poissinger)
2005 Changed $AN to $(AN) in Makefile.am.
2006
2007version 1.2.23beta03 [October 16, 2007]
2008 Fixed off-by-one error in pngset.c
2009 Restore statement to set last character of buffer to \0 in pngerror.c
2010
2011version 1.2.23beta04 [October 23, 2007]
2012 Reject attempt to set all-zero cHRM values.
2013
2014version 1.2.23beta05 [October 26, 2007]
2015 Add missing quotes in projects/visualc6, lost in version 1.2.20rc3
2016
2017version 1.2.23rc01 [November 2, 2007]
2018 No changes.
2019
2020version 1.2.23 [November 6, 2007]
2021 No changes.
2022
2023version 1.2.24beta01 [November 19, 2007]
2024 Moved misplaced test for malloc failure in png_set_sPLT(). This bug was
2025 introduced in libpng-1.2.20beta01.
2026 Ifdef out avg_row etc from png.h and pngwrite.c when PNG_NO_WRITE_FILTER
2027 Do not use png_ptr->free_fn and png_ptr->mem_fn in png_destroy_read_struct()
2028 when png_ptr is NULL (Marshall Clow).
2029 Updated handling of symbol prefixes in Makefile.am and configure.ac (Mike
2030 Frysinger).
2031
2032version 1.2.24beta02 [November 30, 2007]
2033 Removed a useless test and fixed incorrect test in png_set_cHRM_fixed()
2034 (David Hill).
2035
2036version 1.2.24rc01 [December 7, 2007]
2037 No changes.
2038
2039version 1.2.24 [December 14, 2007]
2040 Make sure not to redefine _BSD_SOURCE in pngconf.h
2041 Revised gather.sh and makefile.std in contrib/pngminim to avoid compiling
2042 unused files.
2043
2044version 1.2.25beta01 [January 7, 2008]
2045 Fixed bug with unknown chunk handling, introduced in version 1.2.17rc2
2046
2047version 1.2.25beta02 [January 10, 2008]
2048 Prevent gamma from being applied twice.
2049
2050version 1.2.25rc01 [January 17, 2008]
2051 No changes.
2052
2053version 1.2.25beta03 [January 22, 2008]
2054 Fixed some continue-after-malloc-failure errors in pngset.c (David Hill)
2055 Check for info_ptr == NULL in png_read_info() and png_process_data().
2056 Check for possible use of NULL user_png_ver[] in png_create_read_struct().
2057 Change "if (swidth == NULL)" to "if (sheight == NULL)" in png_handle_sCAL
2058 (bug introduced in libpng-1.2.4/1.0.13).
2059 Return from png_destroy_read_struct() if png_ptr_ptr is NULL.
2060 Fix overflow of "msg" in png_decompress_chunk().
2061
2062version 1.2.25beta04 [January 26, 2008]
2063 Work around Coverity bug report by slightly refactoring
2064 png_read_push_finish_row()
2065
2066version 1.2.25beta05 [January 31, 2008]
2067 Added libpng-1.2.25beta05.tar.lzma to distribution. Get the lzma codec
2068 from <http://tukaani.org/lzma>.
2069 Added lp1225b05.7z to distribution. Get the 7-zip decoder from
2070 from <http://www.7-zip.org>.
2071 Fixed some broken links in the README file.
2072
2073version 1.2.25beta06 [February 6, 2008]
2074 Refactored png_read_push_finish_row() again, trying to satisfy Coverity.
2075 Fixed potential NULL dereference of png_ptr in png_destroy_write_struct();
2076 clarified potential NULL dereference of png_ptr in png_destroy_read_struct();
2077 fixed potential NULL dereference of info_ptr in png_handle_bKGD();
2078 fixed potential NULL dereference of user_png_ver[] in
2079 png_create_write_struct_2(). (Coverity)
2080
2081version 1.2.25rc02 [February 10, 2008]
2082 Reset png_ptr->pass in png_read_push_finish_row() before break.
2083 Changed "pass" from png_byte to int.
2084
2085version 1.2.25 and 1.0.31 [February 18, 2008]
2086 No changes.
2087
2088version 1.2.26beta01 [February 21, 2008]
2089 Added missing "(" in pngmem.c. Bug introduced in libpng-1.2.2/1.0.13
2090
2091version 1.2.26beta02 [March 12, 2008]
2092 Refined error message returned from deflateInit2 in pngwutil.c
2093 Check IHDR length in png_push_read_chunk() before saving it.
2094
2095version 1.2.26beta03 [March 16, 2008]
2096 Revised contrib/gregbook to handle premature end-of-file and file
2097 read errors correctly.
2098
2099version 1.2.26beta04 [March 18, 2008]
2100 Free png_ptr->big_row_buf and png_ptr->prev_row before allocating
2101 new copies in png_read_start_row(). Bug introduced in libpng-1.2.22.
2102
2103version 1.2.26beta05 [March 19, 2008]
2104 Removed extra png_free() added in libpng-1.2.26beta04.
2105
2106version 1.2.26beta06 [March 19, 2008]
2107 Avoid reallocating big_row_buf and prev_row when the size does not increase.
2108
2109version 1.2.26rc01 [March 26, 2008]
2110 Ifdef out some code that is unused when interlacing is not supported.
2111
2112versions 1.0.32 and 1.2.26 [April 2, 2008]
2113 No changes.
2114
2115version 1.2.27beta01 [April 12, 2008]
2116 Fixed bug (introduced in libpng-1.0.5h) with handling zero-length
2117 unknown chunks.
2118 Added more information about png_set_keep_unknown_chunks() to the
2119 documentation.
2120 Reject tRNS chunk with out-of-range samples instead of masking off
2121 the invalid high bits as done in since libpng-1.2.19beta5.
2122
2123version 1.2.27beta02 [April 13, 2008]
2124 Revised documentation about unknown chunk and user chunk handling.
2125 Keep tRNS chunk with out-of-range samples and issue a png_warning().
2126
2127version 1.2.27beta03 [April 14, 2008]
2128 Added check for NULL ptr in TURBOC version of png_free_default().
2129 Removed several unnecessary checks for NULL before calling png_free().
2130 Revised png_set_tRNS() so that calling it twice removes and invalidates
2131 the previous call.
2132 Revised pngtest to check for out-of-range tRNS samples.
2133
2134version 1.2.27beta04 [April 18, 2008]
2135 Added AC_LIBTOOL_WIN32_DLL to configure.ac
2136 Rebuilt Makefile.in, aclocal.m4, and configure with autoconf-2.62
2137
2138version 1.2.27beta05 [April 19, 2008]
2139 Added MAINTAINERCLEANFILES variable to Makefile.am
2140
2141version 1.2.27beta06 [April 21, 2008]
2142 Avoid changing color_type from GRAY to RGB by
2143 png_set_expand_gray_1_2_4_to_8().
2144
2145version 1.2.27rc01 [April 23, 2008]
2146 Fix broken URL for rfc2083 in png.5 and libpng-*.txt
2147
2148version 1.0.33 and 1.2.27 [April 30, 2008]
2149 No changes.
2150
2151version 1.0.34 and 1.2.28 [April 30, 2008]
2152 Rebuilt Makefile.in, aclocal.m4, and configure with autoconf-2.61
2153 due to backward incompatibilities.
2154 Removed a stray object file from contrib/gregbook
2155
2156version 1.2.29beta01 [May 1, 2008]
2157 Removed some stray *.diff and *.orig files
2158
2159version 1.2.29beta02 [May 1, 2008]
2160 Reverted Makefile.in, aclocal.m4, and configure to the libpng-1.2.26
2161 versions.
2162
2163version 1.2.29beta03 [May 2, 2008]
2164 Added --force to autogen libtoolize options and --force-missing to
2165 automake options.
2166 Changed $(ECHO) to echo in Makefile.am and Makefile.in
2167 Updated all configure files to autoconf-2.62
2168 Comment out pnggcrd.c code with #ifdef/#endif if using MSC_VER
2169
2170version 1.2.29rc01 [May 4, 2008]
2171 No changes.
2172
2173version 1.0.35 and 1.2.29 [May 8, 2008]
2174 No changes.
2175
2176version 1.0.37 [May 9, 2008]
2177 Updated Makefile.in and configure (omitted version 1.0.36).
2178
2179version 1.2.30beta01 [May 29, 2008]
2180 Updated libpng.pc-configure.in and libpng-config.in per debian bug reports.
2181
2182version 1.2.30beta02 [June 25, 2008]
2183 Restored png_flush(png_ptr) at the end of png_write_end(), that was
2184 removed from libpng-1.0.9beta03.
2185
2186version 1.2.30beta03 [July 6, 2008]
2187 Merged some cosmetic whitespace changes from libpng-1.4.0beta19.
2188 Inline call of png_get_uint_32() in png_get_uint_31(), as in 1.4.0beta19.
2189 Added demo of decoding vpAg and sTER chunks to pngtest.c, from 1.4.0beta19.
2190 Changed PNGMAJ from 0 to 12 in makefile.darwin, which does not like 0.
2191 Added new private function png_read_chunk_header() from 1.4.0beta19.
2192 Merge reading of chunk length and chunk type into a single 8-byte read.
2193 Merge writing of chunk length and chunk type into a single 8-byte write.
2194
2195version 1.2.30beta04 [July 10, 2008]
2196 Merged more cosmetic whitespace changes from libpng-1.4.0beta19.
2197
2198version 1.0.38rc01, 1.2.30rc01 [July 18, 2008]
2199 No changes.
2200
2201version 1.0.38rc02, 1.2.30rc02 [July 21, 2008]
2202 Moved local array "chunkdata" from pngrutil.c to the png_struct, so
2203 it will be freed by png_read_destroy() in case of a read error (Kurt
2204 Christensen).
2205
2206version 1.0.38rc03, 1.2.30rc03 [July 21, 2008]
2207 Changed "purpose" and "buffer" to png_ptr->chunkdata to avoid memory leaking.
2208
2209version 1.0.38rc04, 1.2.30rc04 [July 22, 2008]
2210 Changed "chunkdata = NULL" to "png_ptr->chunkdata = NULL" several places in
2211 png_decompress_chunk().
2212
2213version 1.0.38rc05, 1.2.30rc05 [July 25, 2008]
2214 Changed all remaining "chunkdata" to "png_ptr->chunkdata" in
2215 png_decompress_chunk() and remove chunkdata from parameter list.
2216 Put a call to png_check_chunk_name() in png_read_chunk_header().
2217 Revised png_check_chunk_name() to reject a name with a lowercase 3rd byte.
2218 Removed two calls to png_check_chunk_name() occuring later in the process.
2219
2220version 1.0.38rc06, 1.2.30rc06 [July 29, 2008]
2221 Added a call to png_check_chunk_name() in pngpread.c
2222 Reverted png_check_chunk_name() to accept a name with a lowercase 3rd byte.
2223
2224version 1.0.38r07, 1.2.30r07 [August 2, 2008]
2225 Changed "-Wall" to "-W -Wall" in the CFLAGS in all makefiles (Cosmin Truta)
2226 Declared png_ptr "volatile" in pngread.c and pngwrite.c to avoid warnings.
2227 Added code in pngset.c to quiet compiler warnings.
2228 Updated contrib/visupng/cexcept.h to version 2.0.1
2229 Relocated a misplaced "#endif /* PNG_NO_WRITE_FILTER */" in pngwutil.c
2230
2231version 1.0.38r08, 1.2.30r08 [August 2, 2008]
2232 Enclose "volatile" declarations in #ifdef PNG_SETJMP_SUPPORTED (Cosmin).
2233
2234version 1.0.38, 1.2.30 [August 14, 2008]
2235 No changes.
2236
2237version 1.2.31rc01 [August 19, 2008]
2238 Removed extra crc check at the end of png_handle_cHRM(). Bug introduced
2239 in libpng-1.2.30beta03 (Heiko Nitzsche).
2240
2241version 1.2.31rc02 [August 19, 2008]
2242 Added PNG_WRITE_FLUSH_SUPPORTED block around new png_flush() call.
2243
2244version 1.2.31rc03 [August 19, 2008]
2245 Added PNG_WRITE_FLUSH_AFTER_IEND_SUPPORTED block, off by default, around
2246 new png_flush().
2247
2248version 1.0.39, 1.2.31 [August 21, 2008]
2249 No changes.
2250
2251version 1.2.32beta01 [September 6, 2008]
2252 Shortened tIME_string to 29 bytes in pngtest.c (bug introduced in
2253 libpng-1.2.22).
2254 Fixed off-by-one error introduced in png_push_read_zTXt() function in
2255 libpng-1.2.30beta04/pngpread.c (Harald van Dijk)
2256 These bugs have been given the vulnerability id CVE-2008-3964.
2257
2258version 1.0.40, 1.2.32 [September 18, 2008]
2259 No changes.
2260
2261version 1.2.33beta01 [October 6, 2008]
2262 Revised makefile.darwin to fix shared library numbering.
2263 Change png_set_gray_1_2_4_to_8() to png_set_expand_gray_1_2_4_to_8()
2264 in example.c (debian bug report)
2265
2266version 1.2.33rc01 [October 15, 2008]
2267 No changes.
2268
2269version 1.0.41rc01, version 1.2.33rc02 [October 23, 2008]
2270 Changed remaining "key" to "png_ptr->chunkdata" in png_handle_tEXt()
2271 to avoid memory leak after memory failure while reading tEXt chunk.`
2272
2273version 1.2.33 [October 31, 2008]
2274 No changes.
2275
2276version 1.2.34beta01 [November 27, 2008]
2277 Revised png_warning() to write its message on standard output by default
2278 when warning_fn is NULL. This was the behavior prior to libpng-1.2.9beta9.
2279 Fixed string vs pointer-to-string error in png_check_keyword().
2280 Added png_check_cHRM_fixed() in png.c and moved checking from pngget.c,
2281 pngrutil.c, and pngwrite.c, and eliminated floating point cHRM checking.
2282 Added check for zero-area RGB cHRM triangle in png_check_cHRM_fixed().
2283 In png_check_cHRM_fixed(), ensure white_y is > 0, and removed redundant
2284 check for all-zero coordinates that is detected by the triangle check.
2285 Revised png_warning() to write its message on standard output by default
2286 when warning_fn is NULL.
2287
2288version 1.2.34beta02 [November 28, 2008]
2289 Corrected off-by-one error in bKGD validity check in png_write_bKGD()
2290 and in png_handle_bKGD().
2291
2292version 1.2.34beta03 [December 1, 2008]
2293 Revised bKGD validity check to use >= x instead of > x + 1
2294 Merged with png_debug from libpng-1.4.0 to remove newlines.
2295
2296version 1.2.34beta04 [December 2, 2008]
2297 More merging with png_debug from libpng-1.4.0 to remove newlines.
2298
2299version 1.2.34beta05 [December 5, 2008]
2300 Removed redundant check for key==NULL before calling png_check_keyword()
2301 to ensure that new_key gets initialized and removed extra warning
2302 (Arvan Pritchard).
2303
2304version 1.2.34beta06 [December 9, 2008]
2305 In png_write_png(), respect the placement of the filler bytes in an earlier
2306 call to png_set_filler() (Jim Barry).
2307
2308version 1.2.34beta07 [December 9, 2008]
2309 Undid previous change and added PNG_TRANSFORM_STRIP_FILLER_BEFORE and
2310 PNG_TRANSFORM_STRIP_FILLER_AFTER conditionals and deprecated
2311 PNG_TRANSFORM_STRIP_FILLER (Jim Barry).
2312
2313version 1.0.42rc01, 1.2.34rc01 [December 11, 2008]
2314 No changes.
2315
2316version 1.0.42, 1.2.34 [December 18, 2008]
2317 No changes.
2318
2319version 1.2.35beta01 [February 4, 2009]
2320 Zero out some arrays of pointers after png_malloc(). (Tavis Ormandy)
2321
2322version 1.2.35beta02 [February 4, 2009]
2323 Zero out more arrays of pointers after png_malloc().
2324
2325version 1.2.35beta03 [February 5, 2009]
2326 Use png_memset() instead of a loop to intialize pointers. We realize
2327 this will not work on platforms where the NULL pointer is not all zeroes.
2328
2329version 1.2.35rc01 [February 11, 2009]
2330 No changes.
2331
2332version 1.2.35rc02 [February 12, 2009]
2333 Fix typo in new png_memset call in pngset.c (png_color should be png_charp)
2334
2335version 1.0.43 and 1.2.35 [February 14, 2009]
2336 No changes.
2337
2338version 1.2.36beta01 [February 28, 2009]
2339 Revised comments in png_set_read_fn() and png_set_write_fn().
2340 Revised order of #ifdef's and indentation in png_debug definitions of png.h
2341 bug introduced in libpng-1.2.34.
2342
2343version 1.2.36beta02 [March 21, 2009]
2344 Use png_memset() after png_malloc() of big_row_buf when reading an
2345 interlaced file, to avoid a possible UMR.
2346 Undid recent revision of PNG_NO_STDIO version of png_write_flush(). Users
2347 having trouble with fflush() can build with PNG_NO_WRITE_FLUSH defined.
2348 Revised libpng*.txt documentation about use of png_write_flush().
2349 Removed fflush() from pngtest.c.
2350 Added "#define PNG_NO_WRITE_FLUSH" to contrib/pngminim/encoder/pngusr.h
2351
2352version 1.2.36beta03 [March 27, 2009]
2353 Relocated misplaced PNG_1_0_X define in png.h that caused the prototype
2354 for png_set_strip_error_numbers() to be omitted from PNG_NO_ASSEMBLER_CODE
2355 builds. This bug was introduced in libpng-1.2.15beta4.
2356 Added a section on differences between 1.0.x and 1.2.x to libpng.3/libpng.txt
2357
2358version 1.2.36beta04 [April 5, 2009]
2359 Fixed potential memory leak of "new_name" in png_write_iCCP() (Ralph Giles)
2360
2361version 1.2.36beta05 [April 24, 2009]
2362 Added "ifndef PNG_SKIP_SETJMP_CHECK" block in pngconf.h to allow
2363 application code writers to bypass the check for multiple inclusion
2364 of setjmp.h when they know that it is safe to ignore the situation.
2365 Made some cosmetic changes to whitespace in pngtest output.
2366 Renamed "user_chunk_data" to "my_user_chunk_data" in pngtest.c to suppress
2367 "shadowed declaration" warning from gcc-4.3.3.
2368 Renamed "gamma" to "png_gamma" in pngset.c to avoid "shadowed declaration"
2369 warning about a global "gamma" variable in math.h on some platforms.
2370
2371version 1.2.36rc01 [April 30, 2009]
2372 No changes.
2373
2374version 1.0.44 and 1.2.36 [May 7, 2009]
2375 No changes.
2376
2377version 1.2.37beta01 [May 14, 2009]
2378 Fixed inconsistency in pngrutil.c, introduced in libpng-1.2.36. The
2379 memset() was using "png_ptr->rowbytes" instead of "row_bytes", which
2380 the corresponding png_malloc() uses (Joe Drew).
2381 Clarified usage of sig_bit versus sig_bit_p in example.c (Vincent Torri)
2382 Updated some of the makefiles in the scripts directory (merged with
2383 those in libpng-1.4.0beta57).
2384
2385version 1.2.37beta02 [May 19, 2009]
2386 Fixed typo in libpng documentation (FILTER_AVE should be FILTER_AVG)
2387 Relocated misplaced #endif in pngwrite.c, sCAL chunk handler.
2388 Conditionally compile png_read_finish_row() which is not used by
2389 progressive readers.
2390 Added contrib/pngminim/preader to demonstrate building minimal progressive
2391 decoder, based on contrib/gregbook with embedded libpng and zlib.
2392
2393version 1.2.37beta03 [May 20, 2009]
2394 In contrib/pngminim/*, renamed "makefile.std" to "makefile", since there
2395 is only one makefile in those directories, and revised the README files
2396 accordingly.
2397 Reformated sources in libpng style (3-space indentation, comment format)
2398
2399version 1.2.37rc01 [May 27, 2009]
2400 No changes.
2401
2402versions 1.2.37 and 1.0.45 [June 4, 2009]
2403 Reformatted several remaining "else statement;" and "if () statement;" into
2404 two lines.
2405 Added "#define PNG_NO_WRITE_SWAP" to contrib/pngminim/encoder/pngusr.h
2406 and "define PNG_NO_READ_SWAP" to decoder/pngusr.h and preader/pngusr.h
2407 Added sections about the git repository and our coding style to the
2408 documentation (merged from libpng-1.4.0beta62)
2409 Added a section to the libpng documentation about using png_get_io_ptr()
2410 in configure scripts to detect the presence of libpng.
2411
2412version 1.2.38beta01 [June 17, 2009]
2413 Revised libpng*.txt and libpng.3 to mention calling png_set_IHDR()
2414 multiple times and to specify the sample order in the tRNS chunk,
2415 because the ISO PNG specification has a typo in the tRNS table.
2416 Changed several PNG_UNKNOWN_CHUNK_SUPPORTED to
2417 PNG_HANDLE_AS_UNKNOWN_SUPPORTED, to make the png_set_keep mechanism
2418 available for ignoring known chunks even when not saving unknown chunks.
2419 Adopted preference for consistent use of "#ifdef" and "#ifndef" versus
2420 "#if defined()" and "if !defined()" where possible.
2421 Added PNG_NO_HANDLE_AS_UNKNOWN in the PNG_LEGACY_SUPPORTED block of
2422 pngconf.h, and moved the various unknown chunk macro definitions
2423 outside of the PNG_READ|WRITE_ANCILLARY_CHUNK_SUPPORTED blocks.
2424
2425version 1.0.46 [June 18, 2009]
2426 Removed some editing cruft from scripts/libpng.pc.in and some makefiles.
2427
2428version 1.2.38rc01 [June 24, 2009]
2429 No changes.
2430
2431version 1.2.38rc02 [June 29, 2009]
2432 Added a reference to the libpng license in each source file.
2433
2434version 1.2.38rc03 [July 11, 2009]
2435 Revised references to the libpng license in pngconf.h and contrib/visupng
2436 source files.
2437 Rebuilt configure scripts with autoconf-2.63.
2438
2439version 1.0.47 and 1.2.38 [July 16, 2009]
2440 No changes.
2441
2442version 1.2.39beta01 [July 25, 2009]
2443 Added a prototype for png_64bit_product() in png.c
2444
2445version 1.2.39beta02 [July 27, 2009]
2446 Avoid a possible NULL dereference in debug build, in png_set_text_2().
2447 (bug introduced in libpng-0.95, discovered by Evan Rouault)
2448
2449version 1.2.39beta03 [July 29, 2009]
2450 Relocated new png_64_bit_product() prototype into png.h
2451 Expanded the information about prototypes in the libpng style section of
2452 the documentation.
2453 Rebuilt configure scripts with autoconf-2.64.
2454
2455version 1.2.39beta04 [August 1, 2009]
2456 Replaced *.tar.lzma with *.txz in distribution. Get the xz codec
2457 from <http://tukaani.org/xz>.
2458
2459version 1.2.39beta05 [August 1, 2009]
2460 Reject attempt to write iCCP chunk with negative embedded profile length
2461 (JD Chen)
2462
2463version 1.2.39c01 [August 6, 2009]
2464 No changes.
2465
2466version 1.2.39 and 1.0.48 [August 13, 2009]
2467 No changes.
2468
2469version 1.2.40beta01 [August 20, 2009]
2470 Removed an extra png_debug() recently added to png_write_find_filter().
2471 Fixed incorrect #ifdef in pngset.c regarding unknown chunk support.
2472
2473version 1.2.40rc01 [September 2, 2009]
2474 Various bugfixes and improvements to CMakeLists.txt (Philip Lowman)
2475
2476version 1.2.40 and 1.0.49 [September 2, 2009]
2477 No changes.
2478
2479version 1.0.50 [September 10, 2009]
2480 Removed some editing cruft from pngset.c and pngwutil.c.
2481
2482version 1.2.41beta01 [September 25, 2009]
2483 Moved redundant IHDR checking into new png_check_IHDR() in png.c
2484 and report all errors found in the IHDR data.
2485 Eliminated useless call to png_check_cHRM() from pngset.c
2486 Expanded TAB characters in pngrtran.c
2487
2488version 1.2.41beta02 [September 30, 2009]
2489 Revised png_check_IHDR().
2490
2491version 1.2.41beta03 [October 1, 2009]
2492 Revised png_check_IHDR() again, to check info_ptr members instead of
2493 the contents of the returned parameters.
2494
2495version 1.2.41beta04 [October 7, 2009]
2496 Added "xcode" project similar one already in libpng-1.4.0beta (Alam Arias).
2497 Ported some cosmetic changes from libpng-1.4.0beta86.
2498 Eliminated a shadowed declaration of "pp" in png_handle_sPLT().
2499
2500version 1.2.41beta05 [October 17, 2009]
2501 Revised pngconf.h to make it easier to enable iTXt support. From libpng
2502 version 1.2.9 through 1.2.40, defining PNG_iTXt_SUPPORTED did not work
2503 as expected.
2504 Ported some cosmetic changes from libpng-1.4.0beta87, changing
2505 many "#if defined(x)" to "#ifdef x".
2506
2507version 1.2.41beta06 [October 18, 2009]
2508 Restored PNG_USE_LOCAL_ARRAYS code in pngread.c that was inadvertently
2509 deleted in libpng-1.2.41beta05.
2510 Converted all PNG_NO_* tests to PNG_*_SUPPORTED everywhere except pngconf.h
2511 as in libpng-1.4.0beta78 and later.
2512
2513version 1.2.41beta07 [October 21, 2009]
2514 Ported some cosmetic changes from libpng-1.4.0rc01, changing
2515 many "#if defined(x)" to "#ifdef x" in png.h and pngconf.h.
2516
2517version 1.2.41beta08 [October 30, 2009]
2518 Ported from libpng-1.4.0rc01: png_calloc(), png_get_io_chunk_name(),
2519 png_get_io_state(), png_set_user_cache_max(), png_get_user_cache_max(),
2520 png_set_premultiply_alpha, and png_do_read_premultiply_alpha().
2521 Relocated png_do_chop() ahead of building gamma tables in pngrtran.c
2522 This avoids building 16-bit gamma tables unnecessarily.
2523
2524version 1.2.41beta09 [November 1, 2009]
2525 Removed a harmless extra png_set_invert_alpha() from pngwrite.c
2526 More bugfixes and improvements to CMakeLists.txt (Philip Lowman)
2527 Moved CMakeLists.txt from scripts into the main libpng directory.
2528 Apply png_user_chunk_cache_max within png_decompress_chunk().
2529 Merged libpng-1.2.41.txt with libpng-1.4.0.txt where appropriate.
2530
2531version 1.2.41beta10 [November 1, 2009]
2532 Enabled iTXt support by default. To ensure binary compatibility with
2533 previous versions, the "lang" and "lang_key" members will be assumed
2534 to be omitted from previous versions unless the current libpng
2535 version was built with PNG_iTXt_SUPPORTED (which is otherwise no
2536 longer necessary to gain iTXt support), as a signal that the user has
2537 been building previous versions with PNG_iTXt_SUPPORTED as well.
2538
2539version 1.2.41beta11 [November 2, 2009]
2540 Store user's user_png_ver in new png_ptr->user_png_ver element.
2541 Revised iTXt support. To ensure binary compatibility with
2542 previous versions, the "lang" and "lang_key" members will be assumed
2543 to be omitted from versions prior to 1.2.41beta11 whenever there is a
2544 library mismatch.
2545
2546version 1.2.41beta12 [November 2, 2009]
2547 Free png_ptr->user_png_ver when destroying png_ptr.
2548
2549version 1.2.41beta13 [November 3, 2009]
2550 Updated scripts/pngw32.def and projects/wince/png32ce.def
2551 Copied projects/wince/png32ce.def to the scripts directory.
2552 Added scripts/makefile.wce
2553 Patched ltmain.sh for wince support.
2554 Added PNG_CONVERT_tIME_SUPPORTED macro.
2555
2556version 1.2.41beta14 [November 8, 2009]
2557 versions 1.2.41beta05 through 1.2.41beta13 were abandoned.
2558 The 1.0.x/1.2.x series will only receive security updates from now on.
2559 Make inclusion of time.h in pngconf.h depend on PNG_CONVERT_tIME_SUPPORTED
2560 Make #define PNG_CONVERT_tIME_SUPPORTED depend on PNG_WRITE_tIME_SUPPORTED
2561 Reverted iTXt compatibility stuff from 1.2.41beta05, 1.2.41beta11, and
2562 1.2.41beta12.
2563 Reverted IOSTATE feature, user_cache_max, and premultiply_alpha features
2564 from 1.2.41beta08.
2565 Retained png_calloc() from 1.2.41beta08 but as a non-exported function,
2566 and removed reference to png_calloc from scripts/*.def
2567
2568version 1.2.41beta15 [November 8, 2009]
2569 Added PNG_DEPSTRUCT, PNG_DEPRECATED, PNG_USE_RESULT, PNG_NORETURN, and
2570 PNG_ALLOCATED macros to detect deprecated direct access to the
2571 png_struct or info_struct members and other deprecated usage in
2572 applications (John Bowler).
2573 Updated scripts/makefile* to add "-DPNG_CONFIGURE_LIBPNG" to CFLAGS,
2574 to prevent warnings about direct access to png structs by libpng
2575 functions while building libpng. They need to be tested, especially
2576 those using compilers other than gcc.
2577 Updated projects/visualc6 and visualc71 with "/d PNG_CONFIGURE_LIBPNG".
2578
2579version 1.2.41beta16 [November 9, 2009]
2580 Removed three direct references to read_info_ptr members in pngtest.c
2581 that were detected by the new PNG_DEPSTRUCT macro.
2582 Only #define PNG_DEPSTRUCT, etc. in pngconf.h if not already defined.
2583
2584version 1.2.41beta17 [November 10, 2009]
2585 Updated CMakeLists.txt to add "-DPNG_CONFIGURE_LIBPNG" to the definitions.
2586 Marked deprecated function prototypes with PNG_DEPRECATED.
2587 Marked memory allocation function prototypes with PNG_ALLOCATED.
2588 Changed png_check_sig() to !png_sig_cmp() in contrib programs.
2589 Corrected the png_get_IHDR() call in contrib/gregbook/readpng2.c
2590 Added "-DPNG_CONFIGURE_LIBPNG" to the contrib/pngminum makefiles.
2591
2592version 1.2.41beta18 [November 11, 2009]
2593 Renamed scripts/makefile.wce to scripts/makefile.cegcc
2594 Marked nonexported functions with PNG_PRIVATE macro.
2595
2596version 1.2.41rc01 and 1.0.51rc01 [November 18, 2009]
2597 Revised scripts/*.def to reflect functions actually exported by libpng.
2598 Updated the copyright year in scripts/pngw32.rc from 2004 to 2009.
2599 Moved descriptions of makefiles and other scripts out of INSTALL into
2600 scripts/README.txt
2601
2602version 1.2.41rc02 [November 22, 2009]
2603 Rebuilt the configure scripts with autoconf-2.65
2604
2605version 1.2.41rc03 [November 25, 2009]
2606 Disabled the new pedantic warnings about deprecated function use
2607 and deprecated structure access unless the user defines
2608 PNG_PEDANTIC_WARNINGS.
2609 Added "#define PNG_NO_PEDANTIC_WARNINGS" in the libpng source files.
2610 Removed "-DPNG_CONFIGURE_LIBPNG" from the makefiles and projects.
2611
2612version 1.2.41 and 1.0.51 [December 3, 2009]
2613 Updated the list of files and made some cosmetic changes in README.
2614
2615version 1.2.42beta01 [December 4, 2009]
2616 Removed "#define PNG_NO_ERROR_NUMBERS" that was inadvertently added
2617 to pngconf.h in version 1.2.41.
2618 Revised scripts/makefile.netbsd, makefile.openbsd, and makefile.sco
2619 to put png.h and pngconf.h in $prefix/include, like the other scripts,
2620 instead of in $prefix/include/libpng. Also revised makefile.sco
2621 to put them in $prefix/include/libpng12 instead of in
2622 $prefix/include/libpng/libpng12.
2623 Removed leftover "-DPNG_CONFIGURE_LIBPNG" from scripts/makefile.darwin
2624
2625version 1.2.42beta02 [December 11, 2009]
2626 Removed leftover "-DPNG_CONFIGURE_LIBPNG" from contrib/pngminim/*/makefile
2627 Relocated png_do_chop() to its original position in pngrtran.c. The
2628 change in version 1.2.41beta08 caused transparency to be handled wrong
2629 in some 16-bit datastreams (Yusaku Sugai).
2630
2631version 1.2.42rc01 [December 17, 2009]
2632 No changes.
2633
2634version 1.2.42rc02 [December 22, 2009]
2635 Renamed libpng-pc.in back to libpng.pc.in and revised CMakeLists.txt
2636 (revising changes made in 1.2.41beta17 and 1.2.41rc01)
2637
2638version 1.2.42rc03 [December 25, 2009]
2639 Swapped PNG_UNKNOWN_CHUNKS_SUPPORTED and PNG_HANDLE_AS_UNKNOWN_SUPPORTED
2640 in pngset.c to be consistent with other changes in version 1.2.38.
2641
2642version 1.2.42rc04 [January 1, 2010]
2643 Marked png_memcpy_check() and png_memset_check() PNG_DEPRECATED.
2644 Updated copyright year.
2645
2646version 1.2.42rc05 [January 2, 2010]
2647 Avoid deprecated references to png_ptr-io_ptr and png_ptr->error_ptr
2648 in pngtest.c
2649
2650version 1.2.42 and 1.0.52 [January 3, 2010]
2651 No changes.
2652
2653version 1.2.43beta01 [January 27, 2010]
2654 Updated CMakeLists.txt for consistent indentation and to avoid an
2655 unclosed if-statement warning (Philip Lowman).
2656 Removed "#ifdef PNG_1_0_X / #endif" surrounding
2657 PNG_READ_16_TO_8_SUPPORTED and PNG_READ_GRAY_TO_RGB_SUPPORTED
2658 in pngconf.h. These were added in libpng-1.2.41beta08 and libpng-1.0.51,
2659 which introduced a binary incompatibility with libpng-1.0.50.
2660 Backported new png_decompress_chunk() algorithm from libpng-1.4.1.
2661
2662version 1.2.43beta02 [February 1, 2010]
2663 Backported two-pass png_decompress_chunk() algorithm from libpng-1.4.1.
2664
2665version 1.2.43beta03 [February 6, 2010]
2666 Backported fast png_push_save_buffer() algorithm from libpng-1.4.1.
2667 Backported some cosmetic changes from libpng-1.4.1.
2668
2669version 1.2.43beta04 [February 8, 2010]
2670 Reverted recent changes to png_push_save-buffer().
2671 Removed PNGAPI declaration of png_calloc() and png_write_sig() in
2672 1ibpng-1.2.X, introduced by mistake in libpng-1.2.41.
2673 Return allocated "old_buffer" in png_push_save_buffer() before png_error()
2674 to avoid a potential memory leak.
2675
2676version 1.2.43beta05 [February 8, 2010]
2677 Ported rewritten png_decompress_chunk() by John Bowler from libpng-1.4.1.
2678
2679version 1.0.53rc01 and 1.2.43rc01 [February 18, 2010]
2680 No changes.
2681
2682version 1.0.53rc02 and 1.2.43rc02 [February 19, 2010]
2683 Define _ALL_SOURCE in configure.ac, makefile.aix, and CMakeLists.txt
2684 when using AIX compiler.
2685
2686version 1.0.53 and 1.2.43 [February 25, 2010]
2687 Removed unused gzio.c from contrib/pngminim gather and makefile scripts
2688
2689version 1.2.44beta01 [June 18, 2010]
2690 In pngpread.c: png_push_have_row() add check for new_row > height
2691 Removed the now-redundant check for out-of-bounds new_row from example.c
2692
2693version 1.2.44beta02 [June 19, 2010]
2694 In pngpread.c: png_push_process_row() add check for too many rows.
2695 Removed the now-redundant check for new_row > height in png_push_have_row().
2696
2697version 1.2.44beta03 [June 20, 2010]
2698 Rewrote png_process_IDAT_data() to consistently treat extra data as warnings
2699 and handle end conditions more cleanly.
2700 Removed the new (beta02) check in png_push_process_row().
2701
2702version 1.2.44rc01 [June 21, 2010]
2703 Revised some comments in png_process_IDAT_data().
2704
2705version 1.2.44rc02 [June 22, 2010]
2706 Stop memory leak when reading a malformed sCAL chunk.
2707
2708version 1.2.44rc03 [June 23, 2010]
2709 Revised pngpread.c patch of beta05 to avoid an endless loop.
2710
2711version 1.2.44 [June 26, 2010]
2712 Updated some of the "last changed" dates.
2713
2714version 1.2.45beta01 [June 7, 2011]
2715 Fixed uninitialized memory read in png_format_buffer() (Bug
2716 report by Frank Busse, related to CVE-2004-0421).
2717 Pass "" instead of '\0' to png_default_error() in png_err(). This mistake
2718 was introduced in libpng-1.2.20beta01.
2719 Check for up->location !PNG_AFTER_IDAT when writing unknown chunks
2720 before IDAT.
2721 Ported bugfix in pngrtran.c from 1.5.3: when expanding a paletted image,
2722 always expand to RGBA if transparency is present.
2723
2724version 1.2.45beta02 [June 8, 2011]
2725 Check for integer overflow in png_set_rgb_to_gray().
2726
2727version 1.2.45beta03 [June 19, 2011]
2728 Check for sCAL chunk too short.
2729
2730version 1.2.45rc01 and 1.0.55rc01 [June 30, 2011]
2731 Updated "last changed" dates and copyright year.
2732
2733version 1.2.45 and 1.0.55 [July 7, 2011]
2734 No changes.
2735
2736version 1.2.46rc01 and 1.0.56rc01 [July 8, 2011]
2737 Reverted changes to Makefile.am and Makefile.in to libpng-1.2.44 versions.
2738
2739version 1.2.46rc02 and 1.0.56rc02 [July 8, 2011]
2740 Added CMakeLists.txt, projects/xcode, and pnggccrd.c to EXTRA_DIST in
2741 Makefile.am and Makefile.in
2742
2743version 1.2.46 and 1.0.56 [July 9, 2011]
2744 Udated copyright year to 2011.
2745
2746version 1.2.47beta01 [February 17, 2012]
2747 Updated contrib/pngminus/makefile.std (Samuli Souminen)
2748
2749version 1.0.57rc01 and 1.2.47rc01 [February 17, 2012]
2750 Fixed CVE-2011-3026 buffer overrun bug. This bug was introduced when
2751 iCCP chunk support was added at libpng-1.0.6.
2752
2753version 1.0.57 and 1.2.47 [February 18, 2012]
2754 No changes.
2755
2756version 1.2.48beta01 [February 27, 2012]
2757 Removed two useless #ifdef directives from pngread.c and one from pngrutil.c
2758 Eliminated redundant png_push_read_tEXt|zTXt|iTXt|unknown code from
2759 pngpread.c and use the sequential png_handle_tEXt, etc., in pngrutil.c;
2760 now that png_ptr->buffer is inaccessible to applications, the special
2761 handling is no longer useful.
2762 Fixed bug with png_handle_hIST with odd chunk length (Frank Busse).
2763 Fixed incorrect type (int copy should be png_size_t copy) in png_inflate().
2764 Fixed off-by-one bug in png_handle_sCAL() when using fixed point arithmetic,
2765 causing out-of-bounds read in png_set_sCAL() because of failure to copy
2766 the string terminators. This bug was introduced in libpng-1.0.6 (Frank
2767 Busse).
2768
2769version 1.2.48rc01 [March 2, 2012]
2770 Removed the png_free() of unused png_ptr->current_text from pngread.c.
2771 Added libpng license text to pnggccrd.c and pngvcrd.c (requested by Chrome).
2772
2773version 1.2.48rc02 [March 2, 2012]
2774 Removed all of the assembler code from pnggccrd.c and just "return 2;".
2775
2776version 1.0.58 and 1.2.48 [March 8, 2012]
2777 No changes.
2778
2779version 1.0.59 and 1.2.49 [March 29, 2012]
2780 Revised png_set_text_2() to avoid potential memory corruption (fixes
2781 CVE-2011-3048, also known as CVE-2012-3425).
2782 Prevent PNG_EXPAND+PNG_SHIFT doing the shift twice.
2783
2784version 1.0.60 and 1.2.50 [July 9, 2012]
2785 Changed "a+w" to "u+w" in Makefile.in to fix CVE-2012-3386.
2786
2787version 1.2.51beta01 [January 22, 2013]
2788 Ignore, with a warning, out-of-range value of num_trans in png_set_tRNS().
2789 Replaced AM_CONFIG_HEADER(config.h) with AC_CONFIG_HEADERS([config.h])
2790 in configure.ac
2791 Changed default value of PNG_USER_CACHE_MAX from 0 to 32767 in pngconf.h.
2792
2793version 1.2.51beta02 [June 13, 2013]
2794 Avoid a possible memory leak in contrib/gregbook/readpng.c
2795 Revised libpng.3 so that "doclifter" can process it.
2796
2797version 1.2.51beta03 [January 1, 2014]
2798 Changed '"%s"m' to '"%s" m' in png_debug macros to improve portability
2799 among compilers.
2800 Rebuilt the configure scripts with autoconf-2.69 and automake-1.14.1
2801
2802version 1.2.51beta04 [January 10, 2014]
2803 Removed potentially misleading warning from png_check_IHDR().
2804
2805version 1.2.51beta05 [January 22, 2014]
2806 Quiet set-but-not-used warnings in pngset.c
2807
2808version 1.2.51rc01 [January 28, 2014]
2809 No changes.
2810
2811version 1.2.51rc02 [January 30, 2014]
2812 Quiet an uninitialized memory warning from VC2013 in png_get_png().
2813
2814version 1.2.51rc03 [February 3, 2014]
2815 Quiet unused variable warnings from clang by porting PNG_UNUSED() from
2816 libpng-1.4.6.
2817
2818version 1.2.51rc04 [February 3, 2014]
2819 Added -DZ_SOLO to CFLAGS in contrib/pngminim/*/makefile
2820
2821version 1.0.61 and 1.2.51 [February 6, 2014]
2822 Added an #ifdef PNG_FIXED_POINT_SUPPORTED/#endif in pngset.c
2823
2824version 1.2.52beta01 [November 6, 2014]
2825 Avoid out-of-bounds memory access while checking version string in
2826 pngread.c and pngwrite.c
2827
2828version 1.2.52rc01 [November 13, 2014]
2829 No changes.
2830
2831version 1.2.52rc02 [November 17, 2014]
2832 Added "-D_CRT_SECURE_NO_DEPRECATE" to CFLAGS in scripts/makefile.vcwin32
2833 and scripts/makefile.vcawin32.
2834
2835version 1.0.62 and 1.2.52 [November 20, 2014]
2836 No changes.
2837
2838version 1.2.53beta01 [omitted]
2839
2840version 1.2.53beta02 [February 6, 2015]
2841 Issue a png_error() instead of a png_warning() when width is
2842 potentially too large for the architecture, in case the calling
2843 application has overridden the default 1,000,000-column limit
2844 (fixes CVE-2014-9495 and CVE-2015-0973).
2845 Quieted some harmless warnings from Coverity-scan.
2846
2847version 1.2.53rc01 [February 12, 2015]
2848 No changes.
2849
2850version 1.2.53rc02 [February 21, 2015]
2851 Display user limits in the output from pngtest.
2852 Changed PNG_USER_CHUNK_MALLOC_MAX from unlimited to 8,000,000.
2853 This can only be changed at library-build time. It only
2854 affects the maximum memory that can be allocated to an
2855 ancillary chunk; it does not limit the size of IDAT
2856 data, which is instead limited by PNG_USER_WIDTH_MAX.
2857 Rebuilt configure scripts with automake-1.15 and libtool-2.4.6
2858
2859versions 1.0.63 and 1.2.53 [February 26, 2015]
2860 No changes.
2861
2862version 1.2.54beta01 [October 23, 2015]
2863 Fixed typecast in a png_debug2() statement in png_set_text_2() to
2864 avoid a compiler warning in PNG_DEBUG builds.
2865 Fixed printf formats in pngtest.c to avoid compiler warnings and a
2866 Coverity warning in PNG_DEBUG builds.
2867 Avoid Coverity issue 80858 (REVERSE NULL) in pngtest.c PNG_DEBUG builds.
2868 Removed WRITE_WEIGHTED_FILTERED code.
2869 Avoid potentially dereferencing NULL info_ptr in png_info_init_3().
2870 Fixed potential leak of png_pixels in contrib/pngminus/pnm2png.c
2871 Use nanosleep() instead of usleep() in contrib/gregbook/rpng2-x.c
2872 because usleep() is deprecated (port from libpng16).
2873 Fixed some bad links in the man page.
2874 Added a safety check in png_set_tIME() (Fixes CVE-2015-7981, bug report
2875 from Qixue Xiao).
2876
2877version 1.2.54rc01 [October 28, 2015]
2878 No changes.
2879
2880version 1.2.54rc02 [October 31, 2015]
2881 Prevent writing over-length PLTE chunk (Cosmin Truta).
2882 Silently truncate over-length PLTE chunk while reading.
2883
2884version 1.2.54rc03 [November 3, 2015]
2885 Clarified COPYRIGHT information to state explicitly that versions
2886 are derived from previous versions.
2887 Removed much of the long list of previous versions from png.h and
2888 libpng.3.
2889
2890version 1.2.54rc04 [November 5, 2015]
2891 Fixed new bug with CRC error after reading an over-length palette
2892 (bug report by Cosmin Truta).
2893
2894version 1.2.54 [%RDATE%]
2895 Cleaned up coding style in png_handle_PLTE().
2896
2897Send comments/corrections/commendations to png-mng-implement at lists.sf.net
2898(subscription required; visit
2899https://lists.sourceforge.net/lists/listinfo/png-mng-implement
2900to subscribe)
2901or to glennrp at users.sourceforge.net
2902
2903Glenn R-P
2904#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette