freebsd-src/sbin/dhclient
Hans Petter Selasky 3492caf512 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
2022-11-14 16:47:21 +01:00
..
tests dhclient: fix pcp:pcp cleanup failure 2022-06-17 09:10:52 +02:00
alloc.c
bpf.c dhclient: support VID 0 (no vlan) decapsulation 2022-02-14 10:06:47 -05:00
clparse.c dhclient: skip_to_semi() consumes semicolon already 2021-08-19 09:11:38 -04:00
conflex.c bpf: Add an ioctl to set the VLAN Priority on packets sent by bpf 2021-07-26 23:13:31 +02:00
convert.c
dhclient-script dhclient-script: cope with /32 address leases 2022-10-05 12:24:31 +02:00
dhclient-script.8
dhclient.8 dhclient: Don't chroot if we are in capability mode. 2018-08-06 16:22:01 +00:00
dhclient.c dhclient(8): Verify lease-, renewal- and rebinding-time option sizes. 2022-11-14 16:47:21 +01:00
dhclient.conf Move dhclient.conf to sbin/dhclient/. 2018-09-18 00:11:45 +00:00
dhclient.conf.5 bpf: Add an ioctl to set the VLAN Priority on packets sent by bpf 2021-07-26 23:13:31 +02:00
dhclient.leases.5 dhclient(8): Bugfixes for some issues reported by mandoc 2020-10-03 18:42:15 +00:00
dhcp-options.5 dhclient(8): Bugfixes for some issues reported by mandoc 2020-10-03 18:42:15 +00:00
dhcp.h dhclient: support option 114, default-url ascii 2019-11-22 20:22:16 +00:00
dhcpd.h bpf: Add an ioctl to set the VLAN Priority on packets sent by bpf 2021-07-26 23:13:31 +02:00
dhctoken.h bpf: Add an ioctl to set the VLAN Priority on packets sent by bpf 2021-07-26 23:13:31 +02:00
dispatch.c dhclient: Fix a logic bug remove_protocol(). 2020-06-04 16:24:13 +00:00
errwarn.c
hash.c
inet.c
Makefile pkgbase: Put dhclient in its own package 2022-10-26 19:46:24 +02:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
options.c dhclient: improve error handling parsing option 119 2020-08-31 15:55:29 +00:00
packet.c dhclient: support VID 0 (no vlan) decapsulation 2022-02-14 10:06:47 -05:00
parse.c
privsep.c
privsep.h
tables.c dhclient: support option 114, default-url ascii 2019-11-22 20:22:16 +00:00
tree.c
tree.h