Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 551422 - 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
Summary: dev-python/pillow-2.8.1 - src_test(): ERROR: TestFileIco.test_save_to_bytes /...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: HPPA Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2015-06-07 06:55 UTC by Jeroen Roovers (RETIRED)
Modified: 2015-06-15 08:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-python:pillow-2.8.1:20150607-063427.log (20150607-063427.log,520.02 KB, text/x-log)
2015-06-07 06:55 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
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.