summaryrefslogtreecommitdiff
path: root/pngmem.c
AgeCommit message (Collapse)Author
2018-07-28Remove the "last changed" version information from source commentsCosmin Truta
This information is maintained by the version control system.
2016-10-19[libpng16] Imported from libpng-1.6.26.tarGlenn Randers-Pehrson
2016-10-02[libpng16] Quieted all remaining -Wconversion compiler warningsGlenn Randers-Pehrson
2016-08-12[libpng16] Imported from libpng-1.6.25beta01.tarGlenn Randers-Pehrson
2016-08-10[libpng16] Revert change to png_malloc_array(). It's not neededGlenn Randers-Pehrson
now that iCCP profile_length honors PNG_USER_CHUNK_MALLOC_MAX.
2016-08-10[libpng16] Return NULL from png_malloc_array() with a warning instead of callingGlenn Randers-Pehrson
png_error() on failure. Reject oversized iCCP profile immediately.
2016-08-03[libpng16] Imported from libpng-1.6.24.tarGlenn Randers-Pehrson
2016-07-15[libpng16] Fixed more indentationGlenn Randers-Pehrson
2015-12-13[libpng16] Update copyright uears in source files.Glenn Randers-Pehrson
2015-04-01[libpng16] Suppressed some warnings from the Borland C++ 5.5.1/5.82 compilerGlenn Randers-Pehrson
(Bug report by Viktor Szaka'ts).
2015-03-07[libpng16] Spelling fixes: less then N -> less than N (Lauri Nurmi)Glenn Randers-Pehrson
2014-11-20[libpng16] Imported from libpng-1.6.15.tarGlenn Randers-Pehrson
2014-11-06[libpng16] Changed "#endif /* PNG_FEATURE_SUPPORTED */" to "#endif /* ↵Glenn Randers-Pehrson
FEATURE */"
2013-12-19[libpng16] Imported from libpng-1.6.8.tarGlenn Randers-Pehrson
2013-11-22[libpng16] Updated "last changed" datesJohn Bowler
2013-11-22[libpng16] Fixed 'minimal' builds. Various obviously useful minimalGlenn Randers-Pehrson
configurations don't build because of missing contrib/libtests test programs and overly complex dependencies in scripts/pnglibconf.dfa. This change adds contrib/conftest/*.dfa files that can be used in automatic build scripts to ensure that these configurations continue to build.
2013-03-02[libpng16] Bump version to 1.6.1beta05Glenn Randers-Pehrson
2013-03-01[libpng16] Imported from libpng-1.6.0beta05.tarGlenn Randers-Pehrson
2013-02-13[libpng16] Imported from libpng-1.6.0.tarGlenn Randers-Pehrson
2013-01-19[libpng16] Use consistent handling of overflows in text, sPLT and unknownJohn Bowler
png_set_* APIs
2013-01-01[libpng16] Updated copyright year to 2013 in newly-changed filesGlenn Randers-Pehrson
2012-08-10[libpng16] Consistently use memset(), memcpy(), and memcmp() instead of theGlenn Randers-Pehrson
png_memset(), png_memcpy(), and png_memcmp() macros.
2012-08-10[libpng16] Consistently use png_memset(), png_memcpy(), and png_memcmp(),Glenn Randers-Pehrson
except in pngtest.c and example.c where these macros are not visible.
2012-08-09[libpng16] Eliminated use of png_sizeof(); use sizeof() instead, and use.Glenn Randers-Pehrson
a consistent style for (sizeof type) and (sizeof (array))
2012-01-01[libpng16] Updated copyright year to 2012Glenn Randers-Pehrson
2011-12-24[libpng16] Implemented 'restrict' for png_info and png_struct.John Bowler
Added new "png_structrp" typedef. Because of the way libpng works both png_info and png_struct are always accessed via a single pointer. This means adding C99 'restrict' to the pointer gives the compiler some opportunity to optimize the code. This change allows that.
2011-12-22[libpng16] Start-up code size improvements, error handler flexibility. TheseJohn Bowler
changes alter how the tricky allocation of the initial png_struct and png_info structures are handled. png_info is now handled in pretty much the same way as everything else, except that the allocations handle NULL return silently. png_struct is changed in a similar way on allocation and on deallocation a 'safety' error handler is put in place (which should never be required). The error handler itself is changed to permit mismatches in the application and libpng error buffer size; however, this means a silent change to the API to return the jmp_buf if the size doesn't match the size from the libpng compilation; libpng now allocates the memory and this may fail. Overall these changes result in slight code size reductions; however, this is a reduction in code that is always executed so is particularly valuable. Overall on a 64-bit system the libpng DLL decreases in code size by 1733 bytes. pngerror.o increases in size by about 465 bytes because of the new functionality.
2011-12-21[libpng16] Added #ifdef PNG_USER_MEM_SUPPORTED in pngmem.c where needed.Glenn Randers-Pehrson
2011-12-21[libpng16] Start-up code size improvements, error handler flexibility.John Bowler
These changes alter how the tricky allocation of the initial png_struct and png_info structures are handled. png_info is now handled in pretty much the same way as everything else, except that the allocations handle NULL return silently. png_struct is changed in a similar way on allocation and on deallocation a 'safety' error handler is put in place (which should never be required). The error handler itself is changed to permit mismatches in the application and libpng error buffer size; however, this means a silent change to the API to return the jmp_buf if the size doesn't match the size from the libpng compilation; libpng now allocates the memory and this may fail. Overall these changes result in slight code size reductions; however, this is a reduction in code that is always executed so is particularly valuable. Overall on a 64-bit system the libpng DLL decreases in code size by 1733 bytes. pngerror.o increases in size by about 465 bytes because of the new functionality.
2011-12-21[libpng16] Updated "last changed" datesGlenn Randers-Pehrson
2011-11-26[libpng16] Added ANSI-C (C90) headers; eliminated the use of FAR/far.John Bowler
2011-11-03[libpng15] Fixed bug in pngvalid on early allocation failure; fixed type castJohn Bowler
in pngmem.c; pngvalid would attempt to call png_error() if the allocation of a png_struct or png_info failed. This would probably have led to a crash. The pngmem.c implementation of png_malloc() included a cast to png_size_t which would fail on large allocations on 16-bit systems.
2011-07-07[devel] Imported from libpng-1.5.4.tarGlenn Randers-Pehrson
2011-06-14[devel] Removed the ACCURATE and LEGACY options (they are no longer useable)John Bowler
Fixed some compiliation problems with scaling options.
2011-03-31[devel] Update change dateGlenn Randers-Pehrson
2011-03-31[devel] Re-initialize the zlib compressor before compressing non-IDAT chunks.Glenn Randers-Pehrson
2011-02-02--amend [devel] Imported from libpng-1.5.1.tarGlenn Randers-Pehrson
2011-01-22[devel] Corrected const_png_ in png.h to png_const_ to avoid pollutingJohn Bowler
the namespace. Added png_get_current_row_number and png_get_current_pass_number for the benefit of the user transform callback. Added png_process_data_pause and png_process_data_skip for the benefit of progressive readers that need to stop data processing or want to optimize skipping of unread data (e.g. if the reader marks a chunk to be skipped.)
2011-01-21[devel] Added const_png_structp and const_png_infop types, and used them inGlenn Randers-Pehrson
prototypes for most png_get_*() functions.
2011-01-06[devel] Imported from libpng-1.5.0.tarGlenn Randers-Pehrson
2011-01-04[devel] Update copyright year and bump to version libpng-1.5.0rc07Glenn Randers-Pehrson
2010-10-15[devel] Imported from libpng-1.5.0beta51.tarGlenn Randers-Pehrson
2010-10-14[devel] Imported from libpng-1.5.0beta50.tarGlenn Randers-Pehrson
2010-10-07[devel] Imported from libpng-1.5.0beta49.tarGlenn Randers-Pehrson
2010-10-04[devel] Imported from libpng-1.5.0beta48.tarGlenn Randers-Pehrson
2010-10-04[devel] Fixed problem with symbols creation in Makefile.am which was assumingGlenn Randers-Pehrson
that CCP writes to standard output by default (Martin Banky).
2010-09-10[devel] Fixed a number of problems with 64-bit compilation reported by VisualGlenn Randers-Pehrson
Studio 2010 (John Bowler).
2010-08-28[devel] Imported from libpng-1.5.0beta46.tarGlenn Randers-Pehrson
2010-08-26[devel] Imported from libpng-1.5.0beta45.tarGlenn Randers-Pehrson
2010-08-24[devel] Bump to version libpng-1.5.0beta45Glenn Randers-Pehrson