Skip Menu |

This queue is for tickets about the Audio-SndFile CPAN distribution.

Report information
The Basics
Id: 75966
Status: patched
Priority: 0/
Queue: Audio-SndFile

People
Owner: Nobody in particular
Requestors: bobtfish [...] bobtfish.net
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.07
Fixed in: (no value)



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.
Good catch. Patch is included in v0.09 which is working its way through CPAN now. Thanks! Joost.