decode_udp_ip_header() assumed that the sizes recorded in the IP and UDP
headers are valid, but if not, OOB memory accesses are possible.
Add checks, and use unsigned types for buffer sizes and offsets.
Add regression tests.
Reported by: Brendan Davidson <binary141@gmail.com>
Sponsored by: The FreeBSD Foundation