]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
dhclient: Fix the trivial buffer overruns correctly
authorcem <cem@FreeBSD.org>
Wed, 18 May 2016 23:41:55 +0000 (23:41 +0000)
committercem <cem@FreeBSD.org>
Wed, 18 May 2016 23:41:55 +0000 (23:41 +0000)
commit16b93d101357f716946014207ddfe9d849f97fc9
treee038aed5349f822bd95b6b7549356d7ac2cb1abc
parent9e9e5fa3d9a209dadbb23a8dc1dfb7fe5c60f726
dhclient: Fix the trivial buffer overruns correctly

A DHCP client identifier is simply the hardware type (one byte) concatenated
with the hardware address (some variable number of bytes, but at most 16).
Limit the size of the temporary buffer to match and the rest of the
calculations shake out correctly.

This is a follow-up to the incorrect r299512, reverted in r300172.

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