Skip to contentSkip to conversation

: [PATCH] alsamixer crashes with toonie (mac-mini) when pressing F4

ALSA - utils 0001080 [email protected] 1 participant 1 message Apr 28, 2005

lore
Share & tools
lore
#0 lore raw

The following issue has been SUBMITTED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1080>
======================================================================
Reported By: gjasny
Assigned To:
======================================================================

Project:                    ALSA - utils
Issue ID:                   1080
Category:                   alsamixer
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             04-28-2005 12:21 CEST
Last Modified:              04-28-2005 12:21 CEST

======================================================================
Summary: [PATCH] alsamixer crashes with toonie (mac-mini)
when pressing F4
Description:
When entering the capture view, alsamixer recognized that there are no napture controls and switches back to playback.

But during the first reinit after F4 mixer_grpidx is freeed and malloced. Because there are no capture devices mixer_grpidx[0] contains garbage, which leads to a crash.

I've replaced the malloc with a calloc, so that mixer_grpidx always contains some sane values.

Cheers,
Gregor
======================================================================

Issue History
Date Modified Username Field Change
======================================================================
04-28-05 12:21 gjasny New Issue
04-28-05 12:21 gjasny File Added: alsamixer.diff
======================================================================

-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix