[DragonFlyBSD - Bug #2998] (Closed) sys/dev/sound/pcm/feeder_matrix.c:753: limit check in wrong place ?

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Mon Apr 10 21:37:33 PDT 2017


Issue #2998 has been updated by dillon.

Status changed from New to Closed

Fix committed by swildner

----------------------------------------
Bug #2998: sys/dev/sound/pcm/feeder_matrix.c:753: limit check in wrong place ?
http://bugs.dragonflybsd.org/issues/2998#change-13114

* Author: dcb
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
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'.




-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list