public inbox for alsa-devel@alsa-project.org
 help / color / mirror / Atom feed
* Strange div-by-zero in alsa-lib 1.0.20's snd_pcm_mmap_begin()
@ 2009-08-16 22:24 Daniel Chen
  2009-08-17  6:49 ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Chen @ 2009-08-16 22:24 UTC (permalink / raw)
  To: alsa-devel; +Cc: Takashi Iwai

Hi,

In https://bugs.launchpad.net/ubuntu/+source/alsa-lib/+bug/412677
we're debugging an issue where snd_pcm_mmap_begin(), at line 6409 with

*offset = *pcm->appl.ptr % pcm->buffer_size;

appears to have pcm->buffer_size == 0. What's the correct approach in
handling this corner case?

Thanks,
Dan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-08-17 16:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-16 22:24 Strange div-by-zero in alsa-lib 1.0.20's snd_pcm_mmap_begin() Daniel Chen
2009-08-17  6:49 ` Takashi Iwai
2009-08-17 14:36   ` Lennart Poettering
2009-08-17 16:16     ` Daniel Chen
2009-08-17 16:38       ` Lennart Poettering

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox