commit | a004e23a4c2084f59cdf51b01af6d2a47fef8d95 | [log] [tgz] |
---|---|---|
author | John Bowler <jbowler@acm.org> | Fri Nov 04 20:24:56 2011 -0500 |
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | Fri Nov 04 20:24:56 2011 -0500 |
tree | f24bbc7ddd853a171e8c195802121f553565bb78 | |
parent | 88bcdc269b920b81ef01185772d32a08ad10728f [diff] |
[libpng15] Fixed FP division by zero in pngvalid.c; the 'test_pixel' code left the sBIT fields in the test pixel as 0, which resulted in a floating point division by zero which was irrelevant but causes systems where FP exceptions cause a crash. Added code to pngvalid to turn on FP exceptions if the appropriate glibc support is there to ensure this is tested in the future.