]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
dhclient: Fix some trivial buffer overruns
authorcem <cem@FreeBSD.org>
Thu, 12 May 2016 04:28:22 +0000 (04:28 +0000)
committercem <cem@FreeBSD.org>
Thu, 12 May 2016 04:28:22 +0000 (04:28 +0000)
commit7403ada3a61aecbc825c499abce0e748fed883b4
tree2a6bd833778487c6d393760ff54dc2eaf8fdd66e
parent9c418cf4a67dafc64846998cb8fef66eb9e6bb19
dhclient: Fix some trivial buffer overruns

There was some confusion about how to limit a hardware address to at most 16
bytes.  In some cases it would overrun a byte off the end of the array.
Correct the types and rectify the overrun.

Reported by: Coverity
CIDs: 10086821305550
Sponsored by: EMC / Isilon Storage Division
sbin/dhclient/dhclient.c