Re: [PATCH] hw/loongarch/boot.c: fix out-of-bound reading

2024-07-04 Thread gaosong
在 2024/6/28 下午8:39, Dmitry Frolov 写道: memcpy() is trying to READ 512 bytes from memory, pointed by info->kernel_cmdline, which was (presumable) allocated by g_strdup(""); Found with ASAN, making check with enabled sanitizers. Signed-off-by: Dmitry Frolov --- hw/loongarch/boot.c | 2 +- 1 fil

[PATCH] hw/loongarch/boot.c: fix out-of-bound reading

2024-06-28 Thread Dmitry Frolov
memcpy() is trying to READ 512 bytes from memory, pointed by info->kernel_cmdline, which was (presumable) allocated by g_strdup(""); Found with ASAN, making check with enabled sanitizers. Signed-off-by: Dmitry Frolov --- hw/loongarch/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)