From fb7b7f658327f659c6a6da1af151cb389c2ca4ee Mon Sep 17 00:00:00 2001 From: 0xf00sec <159052166+0xf00sec@users.noreply.github.com> Date: Sun, 1 Jun 2025 13:13:52 +0000 Subject: 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. --- dev/kernel/src/Utils.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'dev/kernel/src/Utils.cc') 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; } -- cgit v1.2.3