]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
DHCP: Fix a potential 1 byte read overflow with DHO_OPTSOVERLOADED
authorRoy Marples <roy@marples.name>
Fri, 19 Apr 2019 20:00:19 +0000 (21:00 +0100)
committerRoy Marples <roy@marples.name>
Fri, 19 Apr 2019 20:00:19 +0000 (21:00 +0100)
commit123833d7ff3ade7bda16a6bf77553ce369a3c666
tree74e814a7d451c36de3d807d94741f08c195a4cb0
parent43961c178e83483eab538b52b5a7722d4c4093fd
DHCP: Fix a potential 1 byte read overflow with DHO_OPTSOVERLOADED

This fix basically moves the option length check up and also
corrects an off by one error with it.

Thanks to Maxime Villard <max@m00nbsd.net>
src/dhcp.c