[DragonFlyBSD - Bug #2999] (New) usr.bin/bdes/bdes.c: 2 * array index check in wrong place ?

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Fri Mar 31 05:27:26 PDT 2017


Issue #2999 has been reported by dcb.

----------------------------------------
Bug #2999: usr.bin/bdes/bdes.c: 2 * array index check in wrong place ?
http://bugs.dragonflybsd.org/issues/2999

* Author: dcb
* Status: New
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
1.

usr.bin/bdes/bdes.c:365]: (style) Array index 'i' is used before limits check.

Source code is

           for (i = 0; ibuf[i] && i < 16; i++)

2.

usr.bin/bdes/bdes.c:385]: (style) Array index 'i' is used before limits check.

Duplicate.



-- 
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