summaryrefslogtreecommitdiff
path: root/pngerror.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.
2017-07-27[libpng16] Imported from libpng-1.6.31.tarGlenn Randers-Pehrson
2017-07-11[libpng16] Removed one of the GCC-7.1.0 'strict-overflow' warnings thatJohn Bowler
result when integers appear on both sides of a compare. Worked around the others by forcing the strict-overflow setting in the relevant functions to a level where they are not reported. Changed "FALL THROUGH" comments to "FALLTHROUGH" because GCC doesn't like the space. Worked around some C-style casts from (void*) because g++ 5.4.0 objects to them. Increased the buffer size for 'sprint' to pass the gcc 7.1.0 'sprint overflow' check that is on by default with -Wall -Wextra.
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-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] Update "last changed" datesGlenn Randers-Pehrson
2016-07-13[libpng16] Fixed some indentation to comply with our coding style.Glenn Randers-Pehrson
2016-06-01[libpng16] Added missing ")" in pngerror.c (Matt Sarrett).Glenn Randers-Pehrson
2015-12-13[libpng16] Update copyright uears in source files.Glenn Randers-Pehrson
2015-11-24[libpng16] Imported from libpng-1.6.20beta03.tarGlenn 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 */"
2014-10-31[libpng16] Changed remaining "if (!x)" to "if (x == 0)" and "if (x)" toGlenn Randers-Pehrson
"if (x !== 0)"
2014-08-21[libpng16] Imported from libpng-1.6.13.tarGlenn Randers-Pehrson
2014-07-04[libpng16] Imported from libpng-1.6.13beta01.tarGlenn Randers-Pehrson
2014-06-24[libpng16] Fixed clang no-warning builds: png_digit was defined but never used.John Bowler
2014-06-11[libpng16] Bump version to 1.6.13beta01Glenn Randers-Pehrson
2014-06-11[libpng16] Imported from libpng-1.6.12.tarGlenn Randers-Pehrson
2014-06-06[libpng16] Bump version to 1.6.12beta01Glenn Randers-Pehrson
2014-06-05[libpng16] Imported from libpng-1.6.11.tarGlenn Randers-Pehrson
2014-03-22[libpng16] Silence 'unused parameter' build warnings (Cosmin).Cosmin Truta
2014-03-08[libpng16] Use "if (value != 0)" instead of "if (value)" consistently.Glenn Randers-Pehrson
2014-03-06[libpng16] Bump version to 1.6.11beta01Glenn Randers-Pehrson
2014-03-06[libpng16] Imported from libpng-1.6.10.tarGlenn Randers-Pehrson
2014-02-09[libpng16] Imported from libpng-1.6.10beta01.tarGlenn Randers-Pehrson
2014-02-06[libpng16] Backport recent changes from libpng-1.7.0beta30 and beta31.John Bowler
2013-12-28[libpng16] Merged pngrio.c, pngtrans.c, pngwio.c, and pngerror.cGlenn Randers-Pehrson
with libpng-1.7.0
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-27[libpng16] Imported from libpng-1.6.1.tarGlenn Randers-Pehrson
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-18[libpng16] Imported from libpng-1.6.1beta02.tarGlenn Randers-Pehrson
2013-02-17[libpng16] Use parentheses consistently in "#if defined()" tests.Glenn Randers-Pehrson
Folded some long lines.
2013-02-17[libpng16] Use parentheses consistently in "#if defined()" tests.Glenn Randers-Pehrson
2013-02-13[libpng16] Imported from libpng-1.6.0.tarGlenn Randers-Pehrson
2013-01-01[libpng16] Updated copyright year to 2013 in newly-changed filesGlenn Randers-Pehrson
2012-12-09[libpng16] Use "FALL THROUGH" comment consistently in switch statements.Glenn Randers-Pehrson
2012-10-25[libpng16] Changed ICC profile support to allow use of an external colorJohn Bowler
management system (CMS). In practice it is not possible to obtain cHRM information reliably using just the end-point tags because they do not exist in the vast majority of profiles. Instead it is necessary to run the endpoints through the ICC colorimetric intent transform (as described in the v4 spec). Since this is likely to be too much code inside libpng for too little gain (it implies a fairly complete CMS implementation) the code has been changed to allow an external CMS to be used. This code is temporarily disabled until a suitable set of test cases using one or more external CMS implementations have been implemented.
2012-08-25[libpng16] Cleaned up and corrected ICC profile handling.John Bowler
contrib/libtests/makepng: corrected 'rgb' and 'gray' cases. profile_error messages could be truncated; made a correct buffer size calculation and adjusted pngerror.c appropriately. png_icc_check_* checking improved; changed the functions to receive the correct color type of the PNG on read or write and check that it matches the color space of the profile (despite what the comments said before, there is danger in assuming the app will cope correctly with an RGB profile on a grayscale image and, since it violates the PNG spec, allowing it is certain to produce inconsistent app behavior and might even cause app crashes.) Check that profiles contain the tags needed to process the PNG (tags all required by the ICC spec). Removed unused PNG_STATIC from pngpriv.h.
2012-08-17[libpng16] Bump version to 1.6.0beta28Glenn Randers-Pehrson
2012-08-16[libpng16] Folded long lines and fixed some grammar.Glenn 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-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-03-18[ibpng16] Added application error reporting and added chunk names to readJohn Bowler
benign errors; also added --strict to pngstest - not enabled yet because a warning is produced.