Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 551422

Summary: dev-python/pillow-2.8.1 - src_test(): ERROR: TestFileIco.test_save_to_bytes // OverflowError: Python int too large to convert to C ssize_t
Product: Gentoo Linux Reporter: Jeroen Roovers (RETIRED) <jer>
Component: [OLD] DevelopmentAssignee: Python Gentoo Team <python>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: hppa
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: HPPA   
OS: Linux   
See Also: https://github.com/python-pillow/Pillow/issues/1258
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dev-python:pillow-2.8.1:20150607-063427.log

Description Jeroen Roovers (RETIRED) gentoo-dev 2015-06-07 06:55:09 UTC
Created attachment 404734 [details]
dev-python:pillow-2.8.1:20150607-063427.log

TestFileIco.test_save_to_bytes ... ERROR

======================================================================
ERROR: TestFileIco.test_save_to_bytes
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pillow-2.8.1/work/Pillow-2.8.1-python3_3/Tests/test_file_ico.py", line 27, in test_save_to_bytes
    reloaded = Image.open(output)
  File "/var/tmp/portage/dev-python/pillow-2.8.1/work/Pillow-2.8.1-python3_3/build/lib/PIL/Image.py", line 2266, in open
    im = factory(fp, filename)
  File "/var/tmp/portage/dev-python/pillow-2.8.1/work/Pillow-2.8.1-python3_3/build/lib/PIL/ImageFile.py", line 97, in __init__
    self._open()
  File "/var/tmp/portage/dev-python/pillow-2.8.1/work/Pillow-2.8.1-python3_3/build/lib/PIL/IcoImagePlugin.py", line 265, in _open
    self.load()
  File "/var/tmp/portage/dev-python/pillow-2.8.1/work/Pillow-2.8.1-python3_3/build/lib/PIL/IcoImagePlugin.py", line 268, in load
    im = self.ico.getimage(self.size)
  File "/var/tmp/portage/dev-python/pillow-2.8.1/work/Pillow-2.8.1-python3_3/build/lib/PIL/IcoImagePlugin.py", line 151, in getimage
    return self.frame(i)
  File "/var/tmp/portage/dev-python/pillow-2.8.1/work/Pillow-2.8.1-python3_3/build/lib/PIL/IcoImagePlugin.py", line 161, in frame
    self.buf.seek(header['offset'])
OverflowError: Python int too large to convert to C ssize_t

----------------------------------------------------------------------
Ran 83 tests in 77.610s

FAILED (errors=1)
 * ERROR: dev-python/pillow-2.8.1::gentoo failed (test phase):
 *   Testing failed with python3.3
 *
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2015-06-15 08:14:40 UTC
+  15 Jun 2015; Justin Lecher <jlec@gentoo.org>
+  +files/pillow-2.8.1-ico-backport.patch, pillow-2.8.1.ebuild,
+  pillow-2.8.2.ebuild:
+  backport patch for endianess of ico files, hopefully fixing bug #551422 & bug
+  #551424
+


Please test.