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

   ## Summary
   - Add field widths to GS2200M `sscanf()` string conversions that write into 
fixed-size buffers.
   - Keep the existing parsing flow and assertions unchanged.
   
   ## Root cause
   Several GS2200M response parsers read text returned by the device into 
fixed-size local buffers with `%s` or `%[^...]` conversions that had no maximum 
field width. A longer response field could overrun `addr`, `port`, `cmd`, or 
`cmd2` before the existing parse count assertions ran.
   
   ## 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