commit | 896c3cfb768b6f7bde8e303f785ae9b92beb18cd | [log] [tgz] |
---|---|---|
author | John Bowler <jbowler@acm.org> | Thu Oct 29 18:16:48 2015 -0700 |
committer | John Bowler <jbowler@acm.org> | Thu Oct 29 18:16:48 2015 -0700 |
tree | b4f986e0d50afcd4842d910229d5d5e6b8d5d0c9 | |
parent | 06509be841846a689039b0b353dcd26fa5f08d93 [diff] |
rowbytes check correction The old code incorrectly calculated the output rowbytes when the application decreased either the number of channels or the bit depth (or both) in a user transform. This was safe; libpng overallocated buffer space (potentially by quite a lot; up to 4 times the amount required) but, from 1.5.4 on, resulted in a png_error. Signed-off-by: John Bowler <jbowler@acm.org>