You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that scipy.io.wavfile.read will happily read a wavefile larger than 2**32 bytes, even though these files are not supported by the standard. However, scipy seems to read the filesize % 2**32 first bytes.
Reproducing code example:
# if `filename` corresponds to a large file, this does not crash but returns partial datafs, wavedata=scipy.io.wavfile.read(filename)
Question: should this raise e.g. an IOError('wavefile too large') or similar?
I suspect that the header gets the lower bytes of filesize and we respect that when we read.
It's possible we could check the size of the file and read the whole file (especially if it's 2^32 + header size)
I noticed that
scipy.io.wavfile.read
will happily read a wavefile larger than 2**32 bytes, even though these files are not supported by the standard. However, scipy seems to read thefilesize % 2**32
first bytes.Reproducing code example:
Question: should this raise e.g. an
IOError('wavefile too large')
or similar?Scipy/Numpy/Python version information:
The text was updated successfully, but these errors were encountered: