]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
dhclient(8): Verify lease-, renewal- and rebinding-time option sizes.
authorHans Petter Selasky <hselasky@FreeBSD.org>
Mon, 14 Nov 2022 14:20:09 +0000 (15:20 +0100)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Mon, 14 Nov 2022 15:47:21 +0000 (16:47 +0100)
commit3492caf512ae090816b4ffa275be43b2f5cfc460
treeb56ec4ae2431229f2ecff89d762fec8bd6a5b6e9
parent84b0b7ea4cd6731e91f79e008a747b502106f95a
dhclient(8): Verify lease-, renewal- and rebinding-time option sizes.

Else out-of-bound reads and undefined behaviour may happen.
The current code only checked for the presence of the first of four bytes.
Make sure the fields in question have the minium size required.

No functional change intended.

Reviewed by: rrs@
MFC after: 1 week
Sponsored by: NVIDIA Networking
sbin/dhclient/dhclient.c