Description of problem: I just tried to compile Core2 Test2 package alsa-lib-1.0.3a-1 The compiler said 1. pcm.c(754): warning #175: subscript out of range The source code is snd_interval_set_value(¶ms->intervals[SND_PCM_HW_PARAM_PERIOD_SIZE], pcm->period_size); but struct sndrv_interval intervals[SNDRV_PCM_HW_PARAM_LAST_INTERVAL - SNDRV_PCM_HW_PARAM_FIRST_INTERVAL + 1]; I make it that the array has 12 elements, and the source code asks for element #13. 2. pcm.c(755): warning #175: subscript out of range pcm.c(756): warning #175: subscript out of range pcm.c(757): warning #175: subscript out of range pcm.c(758): warning #175: subscript out of range pcm.c(759): warning #175: subscript out of range Duplicates. 3. iwffff.c(644): warning #175: subscript out of range The source code is gwave->share_id[4] = snd_LE_to_host_32(*(((unsigned int *)wave) + 8/4)); but unsigned int share_id[4]; 4. iwffff.c(880): warning #175: subscript out of range iwffff.c(880): warning #175: subscript out of range Duplicates. 5. More deeply, I checked for nested assigments in assert statements. I found [dcb@localhost BUILD]$ find . -name \*.c -print | xargs grep -n "assert.*(.* = " ./alsa-lib-1.0.3a/src/pcm/pcm.c:1799: assert(handler->type = SND_ASYNC_HANDLER_PCM); ./alsa-lib-1.0.3a/src/async.c:56: assert(siginfo->si_code = SI_SIGIO); ./alsa-lib-1.0.3a/src/control/control.c:539: assert(handler->type = SND_ASYNC_HANDLER_CTL); I'm not saying this is certainly wrong code, I'm only saying it is IMHO deeply suspicious code. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Please file upstream at: https://bugtrack.alsa-project.org/alsa-bug/login_page.php Thanks!
>Please file upstream at: Sorry, but I am unable to. If you were to help me out here by submitting it, on my behalf, then that would be ok with me.
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000223