HomeFreeBSD

dhclient(8): Verify lease-, renewal- and rebinding-time option sizes.

Description

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

Details

Provenance
hselaskyAuthored on Nov 14 2022, 2:20 PM
Parents
rG84b0b7ea4cd6: bhyve: Fix a typo in a comment
Branches
Unknown
Tags
Unknown