Project

General

Profile

Actions

Bug #2998

closed

sys/dev/sound/pcm/feeder_matrix.c:753: limit check in wrong place ?

Added by dcb over 7 years ago. Updated over 7 years ago.

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

Also available in: Atom PDF