mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-10 17:12:55 +02:00
When reading UDP packets from userspace with recvmsg()/recv() we
would hit a VERIFY() if the supplied buffer is smaller than the
received UDP packet. Instead we should just return truncated data
to the caller.
This can be reproduced with:
$ dd if=/dev/zero bs=1k count=1 | nc -u 192.168.3.190 68
4.1 KiB
4.1 KiB