1. 11 3月, 2021 1 次提交
  2. 09 9月, 2020 1 次提交
  3. 08 4月, 2019 1 次提交
    • C
      arm: Partially revert "Fix a memory leak in the riffled palette [...]" · a627bd26
      Cosmin Truta 提交于
      The memory leak remains fixed, but the associated refactoring is
      being reverted. Moving the initialization of the riffled palette
      from png_do_read_transformations to png_init_palette_transformations
      has caused a regression in some of the test programs.
      
      Although png_init_palette_transformations is the proper place to
      perform this initialization, and the test programs are technically
      incorrect to fail, we are still undoing that refactoring for the
      time being.
      a627bd26
  4. 31 3月, 2019 1 次提交
  5. 04 2月, 2019 1 次提交
    • C
      Fix a memory leak in the riffled palette optimization on ARM; refactor · 70d122aa
      Cosmin Truta 提交于
      Move deallocation of riffled_palette from png_write_destroy to
      png_read_destroy. The reader (not the writer) is the owner of
      riffled_palette.
      
      Move allocation and initialization of riffled_palette from
      png_do_read_transformations to png_init_palette_transformations.
      
      Allow riffled_palette inside png_struct only if the ARM Neon
      optimizations are enabled.
      
      Rename png_riffle_palette_rgba to png_riffle_palette_rgba8, etc.,
      to better indicate the strict applicability of these routines.
      
      Fix an unused parameter warning in the build configurations where
      riffled palette optimization is not enabled.
      
      Fix indentation.
      70d122aa
  6. 01 12月, 2018 1 次提交
  7. 04 9月, 2018 3 次提交
  8. 19 8月, 2018 2 次提交
    • C
      Remove top-level const from function-scope variables · ceb32778
      Cosmin 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
      ceb32778
    • C
      Replace the remaining uses of PNG_CONST with const · 1ef88828
      Cosmin 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.
      1ef88828
  9. 29 7月, 2018 1 次提交
  10. 16 7月, 2018 2 次提交
  11. 18 6月, 2018 1 次提交
  12. 07 3月, 2018 1 次提交
  13. 09 2月, 2018 1 次提交
  14. 03 11月, 2017 2 次提交
  15. 01 11月, 2017 1 次提交
  16. 29 9月, 2017 2 次提交
  17. 04 9月, 2017 1 次提交
  18. 27 7月, 2017 2 次提交
  19. 11 7月, 2017 1 次提交
    • J
      [libpng16] Removed one of the GCC-7.1.0 'strict-overflow' warnings that · 72d07d32
      John 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.
      72d07d32
  20. 30 6月, 2017 1 次提交
  21. 29 6月, 2017 1 次提交
  22. 01 4月, 2017 1 次提交
  23. 31 3月, 2017 1 次提交
  24. 30 3月, 2017 1 次提交
  25. 16 3月, 2017 2 次提交
  26. 28 2月, 2017 1 次提交
  27. 20 10月, 2016 1 次提交
  28. 03 10月, 2016 1 次提交
  29. 04 8月, 2016 2 次提交
  30. 16 7月, 2016 1 次提交
  31. 26 5月, 2016 1 次提交