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

   ## Summary
   - reserve one extra byte for the RX buffer terminator
   - keep the nRF24L01 read length capped at `NRF24L01_MAX_PAYLOAD_LEN`
   - dump only the bytes actually received in the debug path
   
   ## Why
   `nrf24_read()` appends a NUL terminator after reading a packet. The local 
buffer was exactly 32 bytes, which is the nRF24L01 maximum payload length. A 
full-size payload can therefore return 32 and make `rbuf[ret] = '\0'` write one 
byte past the buffer.
   
   ## Testing
   - `git diff --check origin/master..HEAD`
   - `git show --check --stat --oneline HEAD`
   - local compile/checkpatch not run: this Windows environment has no usable 
`gcc`/`clang`/`make` or WSL/bash shell


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