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

   ## Summary
   - Limit nrf24l01_term RX reads to `sizeof(buff) - 1`.
   - Keep the trailing byte available for the `buff[ret] = '\0'` terminator.
   
   ## Root cause
   `buff` is declared as `NRF24L01_MAX_PAYLOAD_LEN + 1`, but `read_pkt()` 
requested `sizeof(buff)` bytes before appending a NUL terminator. A full-length 
read could write the terminator one byte past `buff`.
   
   ## Testing
   - `git diff --check`
   - `git show --stat --check --format=fuller HEAD`
   
   Not run: local compile, because this environment does not have `make`, 
`cmake`, `gcc`, `clang`, or `cc` available.


-- 
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