NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/50643: src/sys/arch/hpc/stand/hpcboot/arm/arm_console.cpp:80: sanity check after use
>Number: 50643
>Category: misc
>Synopsis: src/sys/arch/hpc/stand/hpcboot/arm/arm_console.cpp:80: sanity check after use
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 10 21:00:00 +0000 2016
>Originator: David Binderman
>Release: cvs dated 20160110
>Organization:
>Environment:
>Description:
[src/sys/arch/hpc/stand/hpcboot/arm/arm_console.cpp:80]: (style) Array index 'i' is used before limits check.
Source code is
for (int i = 0; _bufm[i] != '\0' && i < CONSOLE_BUFSIZE; i++) {
Suggest sanity check array index before use.
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index