nuttx-apps/examples/usrsocktest
liangchaozhong ffab06c6c5 usrsock:fix stack-buffer-overflow issue when running basic_send test case
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>
2022-10-24 17:02:15 +08:00
..
defines.h apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
Kconfig Application.mk and main.c files: Change builtin's entry point from main to xxx_main by macro expansion. This change make the entry point fully compliant with POSIX/ANSI standard. 2019-10-06 06:14:56 -06:00
Make.defs style: unify path to files in comment section 2022-03-09 10:37:33 +08:00
Makefile Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
usrsocktest_basic_connect.c apps: testing: ostest: nxstyle fixes 2022-03-08 01:44:49 +08:00
usrsocktest_basic_daemon.c examples/usrsocktest: correct return value check of dup2() 2022-09-01 14:58:09 +08:00
usrsocktest_basic_getsockname.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_basic_getsockopt.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_basic_send.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_basic_setsockopt.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_block_recv.c Fix the minor style issue 2022-10-16 19:07:16 +02:00
usrsocktest_block_send.c Fix the minor style issue 2022-10-16 19:07:16 +02:00
usrsocktest_chardev.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_daemon.c usrsock:fix stack-buffer-overflow issue when running basic_send test case 2022-10-24 17:02:15 +08:00
usrsocktest_main.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_multi_thread.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_noblock_connect.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_noblock_recv.c examples/usrsocktest: correct the check region of remote address 2022-09-01 14:58:09 +08:00
usrsocktest_noblock_send.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_nodaemon.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_poll.c apps: testing: ostest: nxstyle fixes 2022-03-08 01:44:49 +08:00
usrsocktest_remote_disconnect.c apps: testing: ostest: nxstyle fixes 2022-03-08 01:44:49 +08:00
usrsocktest_wake_with_signal.c Fix the minor style issue 2022-10-16 19:07:16 +02:00