[NumPy-Tickets] [NumPy] #1370: numpy.load() crashes on invalid data
NumPy Trac
numpy-tickets@scipy....
Thu Jan 21 17:49:23 CST 2010
#1370: numpy.load() crashes on invalid data
------------------------+---------------------------------------------------
Reporter: dhelfman | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.5.0
Component: numpy.core | Version: 1.4.0
Keywords: |
------------------------+---------------------------------------------------
Comment(by ChrisBarker):
Note 2:
nor does is crash with numpy1.4, Python2.6, OS-X 10.4.11, PPC:
{{{
Python 2.6 (trunk:66714:66715M, Oct 1 2008, 18:36:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.__version__
'1.4.0'
>>>
>>> import cStringIO as io
>>> np.load( io.StringIO( '0' ) )
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
/site-packages/numpy/lib/io.py", line 301, in load
"Failed to interpret file %s as a pickle" % repr(file)
IOError: Failed to interpret file <cStringIO.StringI object at 0xf500> as
a pickle
>>>
}}}
maybe an endian difference?
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1370#comment:4>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list