mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Regression test for off-by-one palette check error
This adds a file to regression-test the previously introduced off-by-one error in the check on read for a colormapped PNG with an out-of-range index (equal or greater than the length of the PLTE). Previous tests covered all cases except the 8-bit palette case; the "small" test file contains the "bad" entry at index 254, not 255 so it passes even if the final byte is not checked. The new file has the erroneous entry in the last byte. Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
parent
893b8113f0
commit
2b814cde29
BIN
contrib/testpngs/badpal/regression-palette-8.png
Normal file
BIN
contrib/testpngs/badpal/regression-palette-8.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
Loading…
x
Reference in New Issue
Block a user