summaryrefslogtreecommitdiffstats
path: root/lib/liby
diff options
context:
space:
mode:
authorcem <cem@FreeBSD.org>2016-04-20 01:17:18 +0000
committercem <cem@FreeBSD.org>2016-04-20 01:17:18 +0000
commita83d88847ec6776630c3b69efb8c6dcc2960f1bc (patch)
treea0e18543d1a7f2c19afaceb34d90d83ddc89ad99 /lib/liby
parent74adfc723aa909658e6ca53425f294ca0782764e (diff)
downloadFreeBSD-src-a83d88847ec6776630c3b69efb8c6dcc2960f1bc.zip
FreeBSD-src-a83d88847ec6776630c3b69efb8c6dcc2960f1bc.tar.gz
nctgpio(4): Don't index past the end of sc->pins array
This driver thinks that the NCT_MAX_PIN index is a valid index in a few places (nct_attach() for-loop, as well as NCT_IS_VALID_PIN()). Allocate room for NCT_MAX_PIN as an index, that is, NCT_MAX_PIN + 1 elements. Reported by: Coverity CIDs: 1353806, 1353807, 1353808, 1353809, 1353810 Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'lib/liby')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud