summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/src/Utils.cc
diff options
context:
space:
mode:
author0xf00sec <159052166+0xf00sec@users.noreply.github.com>2025-06-01 13:13:52 +0000
committerGitHub <noreply@github.com>2025-06-01 13:13:52 +0000
commitfb7b7f658327f659c6a6da1af151cb389c2ca4ee (patch)
tree01e2c442c16655776771cab854e266f46202287b /dev/kernel/src/Utils.cc
parentfc0e8401c905171cbc5659065052c3ca9db89cc2 (diff)
Heap Overflow in `rt_copy_memory`
To avoid directly affecting the API that relies on null-termination, this patch applies a minimal fix by removing the overflow without adding bounds checks or changing the function signature.
Diffstat (limited to 'dev/kernel/src/Utils.cc')
-rw-r--r--dev/kernel/src/Utils.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/dev/kernel/src/Utils.cc b/dev/kernel/src/Utils.cc
index d7cc08af..484bcfaa 100644
--- a/dev/kernel/src/Utils.cc
+++ b/dev/kernel/src/Utils.cc
@@ -80,8 +80,6 @@ Int rt_copy_memory(const voidPtr src, voidPtr dst, Size len) {
++index;
}
- dstChar[index] = 0;
-
return index;
}