From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050504 Fedora/1.7.7-3 Description of problem: playwave crashes when it is given a corrupt wave file. Specifically, it crashes when the "Channels" field is zero. Version-Release number of selected component (if applicable): SDL_mixer-1.2.5-5 How reproducible: Always Steps to Reproduce: 1. Execute "playwave channels-zero.wav" Actual Results: playwave crashes. The following is printed out to the console: Opened audio at 22050 Hz 16 bit stereo Fatal signal: Segmentation Fault (SDL Parachute Deployed) Expected Results: playwave reports that the wave file is corrupt (or at least exits gracefully) Additional info:
Created attachment 114491 [details] channels-zero.wav -- corrupt WAVE file that demonstrates the crash This file originally comes from the OpenQuartz project. It is GPL. I modified it in a hex editor with the sole intention of creating a test case that causes many applications to crash.
This report targets the FC3 or FC4 products, which have now been EOL'd. Could you please check that it still applies to a current Fedora release, and either update the target product or close it ? Thanks.
Yup it still reproduces, although the shell output has changed slightly. > /usr/bin/playwave channels-zero.wav Opened audio at 22050 Hz 16 bit stereo zsh: segmentation fault /usr/bin/playwave channels-zero.wav The repro scenario is pretty straight-forward so you should be able to see for yourself. Here is the version of playwave that I'm using: > rpm -qf /usr/bin/playwave SDL_mixer-1.2.7-2.fc6
Assigning this bug to extras. SDL-mixer is not part of Core anymore since FC-4.
SDL_mixer has fixed this to exit gracefully. [bpepple@Bivouac Desktop]$ playwave channels-zero.wav Opened audio at 22050 Hz 16 bit stereo Couldn't load channels-zero.wav: Unrecognized sound file type [bpepple@Bivouac Desktop]$