mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
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:
parent
b38c32ed70
commit
5025bdd487
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user