[alsa-devel] alsamixer crashes with SIGFPE

Florian Faber faber at faberman.de
Thu Feb 18 09:29:44 CET 2010


Hi,

there are several spots in alsamixer's mixer_display.c that cause SIGFPE
through division by zero if (max-min) is zero:

bar_height = ((volumes[c] - min) * volume_height + max - min - 1) / (max
- min);

value = ((volumes[0] - min) * 100 + (max - min) / 2) / (max - min);

etc.


Flo
-- 
Machines can do the work, so people have time to think.
public key DA43FEF4          x-hkp://wwwkeys.eu.pgp.net


More information about the Alsa-devel mailing list