mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00:00
Kernel: Remove strcpy()
These are not called in the kernel or by libstdc++ anyway. Remove the tempting function, and prevent future overflows.
This commit is contained in:
parent
9795c61464
commit
d5b7c28a5e
Notes:
sideshowbarker
2024-07-19 03:14:44 +09:00
Author: https://github.com/BenWiederhake
Commit: d5b7c28a5e
Pull-request: https://github.com/SerenityOS/serenity/pull/3275
Reviewed-by: https://github.com/awesomekling
2 changed files with 0 additions and 11 deletions
|
@ -97,15 +97,6 @@ const void* memmem(const void* haystack, size_t haystack_length, const void* nee
|
|||
return AK::memmem(haystack, haystack_length, needle, needle_length);
|
||||
}
|
||||
|
||||
char* strcpy(char* dest, const char* src)
|
||||
{
|
||||
auto* dest_ptr = dest;
|
||||
auto* src_ptr = src;
|
||||
while ((*dest_ptr++ = *src_ptr++) != '\0')
|
||||
;
|
||||
return dest;
|
||||
}
|
||||
|
||||
void memset_user(void* dest_ptr, int c, size_t n)
|
||||
{
|
||||
ASSERT(Kernel::is_user_range(VirtualAddress(dest_ptr), n));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue