summaryrefslogtreecommitdiff
path: root/Kernel/RTC.h
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-06 08:27:51 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-06 08:49:35 +0200
commit9213d1e92686ad650aa093e7e853b3996c926779 (patch)
treef0227320c4f6cbcf0b0f7bfbedb5de9a7f038a5c /Kernel/RTC.h
parent928f16d3608138480def073188210e7c3b6790a2 (diff)
downloadserenity-9213d1e92686ad650aa093e7e853b3996c926779.zip
Kernel: Truncate UDP packets on read
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
Diffstat (limited to 'Kernel/RTC.h')
0 files changed, 0 insertions, 0 deletions