Open LecterChu opened 2 months ago
Thanks Could you try to submit PR to fix this? Welcome PR~
Thanks Could you try to submit PR to fix this? Welcome PR~ Thank you for your response. I will do my best to look into it and see if I can contribute a PR soon.
RT-Thread Version
5.2.0 commit 2f559906d6202c27142237ab4b1d893034a5b7c3
Hardware Type/Architectures
VEXPRESS_A9
Develop Toolchain
GCC
Hi, I'm encountering an unexpected rt_kprintf error.
Steps to reproduce
1.Build RT-Thread 2.Use the following command to start the kernel with QEMU:
Source code location
/root/rtthread/rt-thread/src/klibc/kstdio.c : 344
Test case
syz_thread_safe_delete (0x0)
Backtrace upon hitting the bug
It appears to be a pointer error in the ‘++str’ operation, likely caused by buf being uninitialized or pointing to an invalid memory location, resulting in improper string manipulation or buffer overflow.
Other additional context
No response