nuttx-apps/examples/poll
Old-Ding 50ffee7a85 examples: Fix network echo receive terminators
The netloop and poll TCP echo examples receive up to IOBUFFER_SIZE bytes and then append a NUL terminator before logging the data. A full-size receive can therefore write one byte past the input buffer.

Reserve one extra byte in the buffers that are terminated after recv(). Keep the receive limit and echo length capped at IOBUFFER_SIZE so the data path is unchanged.

Signed-off-by: Old-Ding <ai.neo.ae86@gmail.com>
2026-07-09 09:27:18 +08:00
..
CMakeLists.txt examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
host.c examples: Fix network echo receive terminators 2026-07-09 09:27:18 +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 examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Makefile examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Makefile.host examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
net_listener.c examples: Fix network echo receive terminators 2026-07-09 09:27:18 +08:00
net_reader.c examples: Fix network echo receive terminators 2026-07-09 09:27:18 +08:00
poll_internal.h examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
poll_listener.c include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
poll_main.c include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
select_listener.c include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00