Bug 158034 - playwave crashes on invalid input (wave has zero channels)
playwave crashes on invalid input (wave has zero channels)
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: SDL_mixer (Show other bugs)
8
i686 Linux
medium Severity high
: ---
: ---
Assigned To: Brian Pepple
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-17 19:33 EDT by David Costanzo
Modified: 2008-04-02 20:26 EDT (History)
0 users

See Also:
Fixed In Version: 1.2.8-6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-04-02 20:26:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
channels-zero.wav -- corrupt WAVE file that demonstrates the crash (3.02 KB, audio/x-wav)
2005-05-17 19:36 EDT, David Costanzo
no flags Details

  None (edit)
Description David Costanzo 2005-05-17 19:33:55 EDT
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:
Comment 1 David Costanzo 2005-05-17 19:36:53 EDT
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.
Comment 2 Christian Iseli 2007-01-22 05:35:03 EST
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.
Comment 3 David Costanzo 2007-01-24 00:20:27 EST
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
Comment 4 Thomas Woerner 2007-05-22 07:44:08 EDT
Assigning this bug to extras. SDL-mixer is not part of Core anymore since FC-4.
Comment 5 Brian Pepple 2008-04-02 20:26:36 EDT
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]$

Note You need to log in before you can comment on or make changes to this bug.