Valid range for baseline jpeg qtables 1 to 255, fixed overflow from using signed char instead of unsigned char. added test

This commit is contained in:
Stephen Arthur 2016-04-07 09:35:14 -07:00
parent b38c32ed70
commit 5025bdd487

View File

@ -315,7 +315,7 @@ class TestFileJpeg(PillowTestCase):
self.assert_image_similar(im, self.roundtrip(im, qtables='keep'), 30)
# valid bounds for baseline qtable
bounds_qtable = [int(s) for s in ("255 0 " * 32).split(None)]
bounds_qtable = [int(s) for s in ("255 1 " * 32).split(None)]
self.roundtrip(im, qtables=[bounds_qtable])
# values from wizard.txt in jpeg9-a src package.