[alsa-devel] Strange div-by-zero in alsa-lib 1.0.20's snd_pcm_mmap_begin()

Daniel Chen seven.steps at gmail.com
Mon Aug 17 00:24:35 CEST 2009


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


More information about the Alsa-devel mailing list