diff options
| author | 0xf00sec <159052166+0xf00sec@users.noreply.github.com> | 2025-06-22 15:54:12 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-22 15:54:12 +0300 |
| commit | 4d18ce78a0ba66787a91db8103bfd2bb733e0910 (patch) | |
| tree | b807094ef7c35802b0cb7e62eaf8ce09881bd1e9 | |
| parent | b1658f93dc1157e7883d381b0316a60e760fe557 (diff) | |
rt_copy_memory to rt_copy_memory_safe
| -rw-r--r-- | dev/kernel/NeKit/Utils.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dev/kernel/NeKit/Utils.h b/dev/kernel/NeKit/Utils.h index 43526fc8..11566008 100644 --- a/dev/kernel/NeKit/Utils.h +++ b/dev/kernel/NeKit/Utils.h @@ -1,4 +1,3 @@ - /* ------------------------------------------- Copyright (C) 2024-2025, Amlal El Mahrouss, all rights reserved. @@ -29,6 +28,10 @@ Int rt_to_lower(Int c); voidPtr rt_string_in_string(const Char* in, const Char* needle); char* rt_string_has_char(Char* str, Char chr); +// Safe memory functions +Int rt_copy_memory_safe(const voidPtr src, voidPtr dst, Size len, Size dst_size); +voidPtr rt_set_memory_safe(voidPtr dst, UInt32 value, Size len, Size dst_size); + /// UNICODE API Int urt_string_cmp(const Char* src, const Char* cmp, Size len); |
