Old-Ding opened a new pull request, #3597:
URL: https://github.com/apache/nuttx-apps/pull/3597

   ## Summary
   
   The netloop and poll TCP echo examples receive up to `IOBUFFER_SIZE` bytes 
and then append a NUL terminator before logging the received data. A full-size 
receive can therefore write one byte past the input buffer.
   
   Reserve one extra byte for the buffers that are terminated after `recv()`, 
while keeping the receive limit and echo length capped at `IOBUFFER_SIZE`.
   
   ## Validation
   
   - `git diff --check origin/master..HEAD`
   - `git show --check --stat --oneline HEAD`
   - `git ls-files --eol examples/netloop/lo_main.c 
examples/netloop/lo_listener.c examples/poll/host.c 
examples/poll/net_listener.c examples/poll/net_reader.c`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to