smoltcp-rs / smoltcp

a smol tcp/ip stack
BSD Zero Clause License
3.75k stars 421 forks source link

fix(dhcpv4): panic when parsing address #843

Closed thvdveld closed 1 year ago

thvdveld commented 1 year ago

If the domain name server address list did not contain the correct amount of bytes, then the last chunk was not 4 bytes long and Ipv4Address::from_bytes would panic.