summaryrefslogtreecommitdiff
path: root/pngset.c
AgeCommit message (Collapse)Author
2018-08-18Remove top-level const from function-scope variablesCosmin Truta
As per the const correctness rules, top-level const-ness of data in automatic scopes does not propagate outside of these scopes (unlike const-ness at lower levels, such as pointers to const data). Previously, const was used liberally, but inconsistently across the libpng codebase. Using const wherever applicable is not incorrect. However, _consistent_ use of const is difficult to maintain in such conditions. In conclusion, we shall continue to use const only where doing so is strictly necessary: 1. If a function guarantees that it will not modify an argument passed by pointer, the corresponding function parameter should be a pointer-to-const (const T *). 2. Static data should not be modified, therefore it should be const. Reference: Google C++ Style Guide https://google.github.io/styleguide/cppguide.html#Use_of_const
2018-08-18Replace the remaining uses of PNG_CONST with constCosmin Truta
In v1.6.0, compiler support for const became a requirement. It should be used consistently. To maintain backwards compatibility, PNG_CONST is still maintained in deprecated form.
2018-07-28Remove the "last changed" version information from source commentsCosmin Truta
This information is maintained by the version control system.
2018-07-15Release libpng version 1.6.35Cosmin Truta
2018-06-17[libpng16] Replace the remaining uses of png_size_t with size_tCosmin Truta
In v1.6.0, size_t became a required type. It should be used consistently. To maintain backwards compatibility, png_size_t is still maintained in deprecated form.
2018-03-06[libpng16] Imported from libpng-1.6.35beta01.tarGlenn Randers-Pehrson
2017-11-04[libpng16] Initialize entire 256-entry palette in png_set_PLTE().Glenn Randers-Pehrson
2017-10-29[libpng16] Revert recent changes that did not help with oss-fuzz issuesGlenn Randers-Pehrson
2017-10-19[libpng16] Use png_calloc instead of png_malloc in png_set_tRNSGlenn Randers-Pehrson
2017-10-17[libpng16] Initialize entire palette array to zero in png_handle_PLTE().Glenn Randers-Pehrson
2017-10-17[libpng16] Revert recent changes to pngset.cGlenn Randers-Pehrson
2017-10-16[libpng16] Free tRNS chunk data when abandoning itGlenn Randers-Pehrson
2017-10-16[libpng16] Do not enable tRNS having trans_color with out-of-range value.Glenn Randers-Pehrson
2017-10-15[libpng16] Nullify trans_color with out-of-range value, to stop oss-fuzz issue.Glenn Randers-Pehrson
2017-09-19[libpng16] Fix some commentsGlenn Randers-Pehrson
2017-09-16[libpng16] Undo another faulty attempt to stifle oss-fuzz complaintGlenn Randers-Pehrson
2017-09-15[libng16] Attempt to stop Use of Uninitialized Value in png_set_text_2()Glenn Randers-Pehrson
2017-09-15[libpng16] Still another attempt to fix oss-fuzz uninitialized valueGlenn Randers-Pehrson
2017-09-14[libpng16] Imported from libpng-1.6.33beta03.tarGlenn Randers-Pehrson
2017-09-13[libpng16] Undo failed attempt to debug UMR in png_set_text_2().Glenn Randers-Pehrson
2017-09-12[libpng16] Attempt to debug Uninitialized Memory Read in png_set_text_2(),Glenn Randers-Pehrson
detected by the oss-fuzz project.
2017-09-10[libpng16] Trying to avoid a UMR in png_set_text_2(().Glenn Randers-Pehrson
2017-09-10[libpng16] Trying to isolate oss-fuzz issue in png_set_text_2().Glenn Randers-Pehrson
2017-09-08[libpng16] Attempt to isolate an oss-fuzz issue in png_set_text_2Glenn Randers-Pehrson
2017-08-29[libpng16] Fix "last changed" datesGlenn Randers-Pehrson
2017-08-25[libpng16] Bump version to 1.6.33beta01Glenn Randers-Pehrson
2017-08-24[libpng16] Imported from libpng-1.6.32.tarGlenn Randers-Pehrson
2017-08-05[libpng16] Added "eXIf" to "chunks_to_ignore[]" in ↵Glenn Randers-Pehrson
png_set_keep_unknown_chunks().
2017-08-03[libpng16] Restored png_get_eXIf_1() and png_set_eXIf_1() because ↵Glenn Randers-Pehrson
strlen(eXIf_buf) does not work (the eXIf chunk data can contain zeroes).
2017-08-02[libpng16] Removed png_get_eXIf_1() and png_set_eXIf_1().Glenn Randers-Pehrson
2017-08-02[libpng16] Restored png_get_eXIf() and png_set_eXIf() to maintain API ↵Glenn Randers-Pehrson
compatability.
2017-08-01[libpng16] Stop memory leak when returning from png_handle_eXIf() with an errorGlenn Randers-Pehrson
(Bug report from the OSS-fuzz project).
2017-07-31[libpng16] Update "Last changed" dates and some copyright yearsGlenn Randers-Pehrson
2017-07-31[libpng16] Changed name of png_get_eXIF and png_set_eXIf() to png_get_eXIf_1()Glenn Randers-Pehrson
and png_set_eXIf_1(), respectively, to avoid breaking API compatibility with libpng-1.6.31.
2017-07-31[libpng16] Added calls to png_handle_eXIf(() in pngread.c and png_write_eXIf()Glenn Randers-Pehrson
in pngwrite.c, and made various other fixes to png_write_eXIf(). Eliminated png_ptr->num_exif member from pngstruct.h and added num_exif to arguments for png_get_eXIf() and png_set_eXIf().
2017-07-13[libpng16] Implement eXIf chunk supportGlenn Randers-Pehrson
2017-06-29[libpng16] Update some "last changed" datesGlenn Randers-Pehrson
2017-03-30[libpng16] Update CHANGES, ANNOUNCE, and "last changed" dates.Glenn Randers-Pehrson
2017-03-29silence clang -Wcomma warningsViktor Szakats
2016-10-19[libpng16] Imported from libpng-1.6.26.tarGlenn Randers-Pehrson
2016-10-02[libpng16] Quieted 45 (out of 86 remaining) -Wconversion compiler warningsGlenn Randers-Pehrson
2016-09-03[libpng16] Update CHANGES and ANNOUNCE and last-changed date in pngset.cGlenn Randers-Pehrson
2016-09-02[libpng16] png_set_pCAL: do not png_error on readJohn Bowler
Because png_handle_pCAL has allocated memory to free. Signed-off-by: John Bowler <jbowler@acm.org>
2016-08-03[libpng16] Imported from libpng-1.6.24.tarGlenn Randers-Pehrson
2016-07-15[libpng16] Fixed more indentationGlenn Randers-Pehrson
2016-07-13[libpng16] Fixed some indentation to comply with our coding style.Glenn Randers-Pehrson
2016-07-01[libpng16] Updated CHANGES and ANNOUNCEGlenn Randers-Pehrson
2016-07-01pngcp: tool to copy PNG filesJohn Bowler
This adds pngcp to the build together with a pngcp.dfa configuration test; the test revealed some configuration bugs which are fixed by corrections to the _SUPPORTED macros. pngcp builds on all tested configurations and a number of bugs have been fixed to make this happen relative to the version in libpng 1.7 contrib/examples. pngcp.dfa will have to be different for 1.7 but pngcp.c should work fine (not yet tested). pngcp itself is still missing a usage message; this is a preliminary version, although since it behaves the same way as 'cp' most unoids shouldn't have a problem using it correctly. Signed-off-by: John Bowler <jbowler@acm.org>
2016-06-09[libpng16] Imported from libpng-1.6.23.tarGlenn Randers-Pehrson
2016-05-27[libpng16] Ensure png_ptr->trans_values is set in png_set_tRNS().Glenn Randers-Pehrson