Actions
Bug #2998
closedsys/dev/sound/pcm/feeder_matrix.c:753: limit check in wrong place ?
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/31/2017
Due date:
% Done:
0%
Estimated time:
Description
sys/dev/sound/pcm/feeder_matrix.c:753]: (style) Array index 'i' is used before limits check.
Source code is
for (i = 0; m->map[i].type != SND_CHN_T_MAX &&
i < SND_CHN_OSS_MAX; i++) {
Also in the same file, a couple of minor problems:
[dragonfly/sys/dev/sound/pcm/feeder_matrix.c:376]: (warning) %d in format string
(no. 1) requires 'int' but the argument type is 'unsigned int'.
[dragonfly/sys/dev/sound/pcm/feeder_matrix.c:379]: (warning) %d in format string
(no. 1) requires 'int' but the argument type is 'unsigned int'.
Actions