alsamixer crashes with SIGFPE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux