NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/50749: src/sys/dev/dev_verbose.c: 2 * off by one error ?
>Number: 50749
>Category: kern
>Synopsis: src/sys/dev/dev_verbose.c: 2 * off by one error ?
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 02 10:40:00 +0000 2016
>Originator: David Binderman
>Release: cvs dated 20160131
>Organization:
>Environment:
>Description:
1.
[src/sys/dev/dev_verbose.c:68]: (style) Array index 'n' is used before limits check.
Source code is
while (vendors[n] != 0 && n < nvendors)
n++;
2.
[src/sys/dev/dev_verbose.c:89]: (style) Array index 'n' is used before limits check.
Source code is
while (products[n] != 0 && n < nproducts)
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index