summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
author0xf00sec <159052166+0xf00sec@users.noreply.github.com>2025-06-22 16:04:59 +0300
committerGitHub <noreply@github.com>2025-06-22 16:04:59 +0300
commit521adeb2466c64ab0d31b97b74cc349a4fcbfb9d (patch)
tree50c81439fc6909e77c3ba4a3eb7ccdfbe735b6c9
parentb1658f93dc1157e7883d381b0316a60e760fe557 (diff)
IPCMsg.cc
rt_copy_memory_safe
-rw-r--r--dev/kernel/src/Network/IPCMsg.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/kernel/src/Network/IPCMsg.cc b/dev/kernel/src/Network/IPCMsg.cc
index cff19cfa..6f54e449 100644
--- a/dev/kernel/src/Network/IPCMsg.cc
+++ b/dev/kernel/src/Network/IPCMsg.cc
@@ -103,7 +103,7 @@ Bool IPC_MSG::Pass(IPC_MSG* src, IPC_MSG* target) noexcept {
if (src->IpcMsgSz > target->IpcMsgSz) return No;
if (target->IpcMsgSz > src->IpcMsgSz) return No;
- rt_copy_memory(src->IpcData, target->IpcData, src->IpcMsgSz);
+ rt_copy_memory_safe(src->IpcData, target->IpcData, src->IpcMsgSz, kIPCMsgSize);
return Yes;
}