diff options
author | Tom <tomut@yahoo.com> | 2020-09-10 19:49:31 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-13 21:19:15 +0200 |
commit | 7d1b8417bdf5d2818d1c9d310786cdf59650b104 (patch) | |
tree | cb708ca30c6528286ad67fddd92624f6a1920e4b /Kernel/Net/UDPSocket.cpp | |
parent | 1c86ab010824b3e7985c99ff0fc604b0cd42f68d (diff) | |
download | serenity-7d1b8417bdf5d2818d1c9d310786cdf59650b104.zip |
Kernel: Add safe_memcpy, safe_memset and safe_strnlen
These special functions can be used to safely copy/set memory or
determine the length of a string, e.g. provided by user mode.
In the event of a page fault, safe_memcpy/safe_memset will return
false and safe_strnlen will return -1.
Diffstat (limited to 'Kernel/Net/UDPSocket.cpp')
0 files changed, 0 insertions, 0 deletions