[Numpy-discussion] fromfile (binary) double free or corruption

Travis E. Oliphant oliphant at enthought.com
Sun Mar 2 16:23:05 EST 2008


Scott Ransom wrote:
> Hi Travis,
>
> That fixes the problem that I reported such that there is no glibc
> issue anymore.
>
> However, it does result in a change in behaviour for fromfile.
>
> Previously, when no data was returned an exception was raised.
> With the new fix there is no exception, and an empty array is
> returned.  Code (like mine) that depended on an exception being
> thrown at EOF will break.  I've fixed my code, but this could bite
> others.
>   
This should be fixed.  I'll restore the exception.  Thanks for checking 
on it and clarifying.

-teo




More information about the NumPy-Discussion mailing list