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

Travis E. Oliphant oliphant@enthought....
Sun Mar 2 15:23:05 CST 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