Subject: | Segfailt when opening bad WAV file. (Patch included). |
Hiya.
A small mistake in the code can cause a segfault when libsndfile fails
to open a file (as the file is broken).
There's a one line patch, and longer explanation of the problem here:
https://github.com/bobtfish/Audio-SndFile/commit/d0488782642f5ee5ea1c49af569e35a3ba2c5f0e
and the change itself is this:
- if(!self->sndfile) croak("Error opening filehandle:
%s",sf_error(NULL));
+ if(!self->sndfile) croak("Error opening filehandle:
%s",sf_strerror(NULL));
in SndFile.xs
If you could get a new version with this fix out when you have chance so
that we don't have to maintain a local patch, that would be greatly
appreciated.
Thanks in advance.