mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-14 06:30:45 +00:00
The following error was reported when runing usrsocktest with KASAN check enabled.
==1348590==ERROR: AddressSanitizer: stack-buffer-overflow on address 0xf20ec610 at pc 0x56ac61ba bp 0xf20ec278 sp 0xf20ec268
rootcause:
hdrbuf's size is not large enough to store the data in usrsock's request.
solution:
double herbuf's size to make sure the space, used to store usrsock's request, is enough.
Signed-off-by: liangchaozhong <liangchaozhong@xiaomi.com>
|
||
|---|---|---|
| .. | ||
| defines.h | ||
| Kconfig | ||
| Make.defs | ||
| Makefile | ||
| usrsocktest_basic_connect.c | ||
| usrsocktest_basic_daemon.c | ||
| usrsocktest_basic_getsockname.c | ||
| usrsocktest_basic_getsockopt.c | ||
| usrsocktest_basic_send.c | ||
| usrsocktest_basic_setsockopt.c | ||
| usrsocktest_block_recv.c | ||
| usrsocktest_block_send.c | ||
| usrsocktest_chardev.c | ||
| usrsocktest_daemon.c | ||
| usrsocktest_main.c | ||
| usrsocktest_multi_thread.c | ||
| usrsocktest_noblock_connect.c | ||
| usrsocktest_noblock_recv.c | ||
| usrsocktest_noblock_send.c | ||
| usrsocktest_nodaemon.c | ||
| usrsocktest_poll.c | ||
| usrsocktest_remote_disconnect.c | ||
| usrsocktest_wake_with_signal.c | ||