mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
The TCP nettest server receives up to TEST_BUFFER_SIZE bytes and then appends a NUL terminator before checking for the exit command. A full-size receive can therefore write one byte past the receive buffer. Reserve one extra byte for the terminator while keeping the recv() limit and echo length capped at TEST_BUFFER_SIZE. Signed-off-by: Old-Ding <ai.neo.ae86@gmail.com> |
||
|---|---|---|
| .. | ||
| nettest_tcpserver.c | ||
| utils.h | ||