NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/50738: src/sys/dev/pci/n8/common/api/n8_pk_ops.c:103: off by one error ?



>Number:         50738
>Category:       kern
>Synopsis:       src/sys/dev/pci/n8/common/api/n8_pk_ops.c:103: 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:   Mon Feb 01 16:45:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160131
>Organization:
>Environment:
>Description:


[src/sys/dev/pci/n8/common/api/n8_pk_ops.c:103]: (style) Array index 'i' is used before limits check.


  while ((in_p->value_p[i] == 0x0) && (i < in_p->lengthBytes))


>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index