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@
Sponsored by: NVIDIA Networking

(cherry picked from commit 3492caf512ae090816b4ffa275be43b2f5cfc460)

Details

Provenance
hselaskyAuthored on Nov 14 2022, 2:20 PM
Parents
rGe8c769b22d42: geom_part: Check number of GPT entries and size of GPT entry
Branches
Unknown
Tags
Unknown