All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Florian Faber <faber@faberman.de>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: alsamixer crashes with SIGFPE
Date: Thu, 18 Feb 2010 09:44:22 +0100	[thread overview]
Message-ID: <4B7CFDE6.5080700@ladisch.de> (raw)
In-Reply-To: <4B7CFA78.6090104@faberman.de>

Florian Faber wrote:
> 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);

Thanks.  With which hardware do you see this error?


Regards,
Clemens

  reply	other threads:[~2010-02-18  8:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-18  8:29 alsamixer crashes with SIGFPE Florian Faber
2010-02-18  8:44 ` Clemens Ladisch [this message]
2010-02-18  8:51   ` Florian Faber
2010-02-19 16:54     ` Clemens Ladisch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B7CFDE6.5080700@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=faber@faberman.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.