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

   ## Summary
   - Log the generated X509 info buffer before freeing it.
   - Keep the existing success and error paths otherwise unchanged.
   
   ## Root cause
   `x509_pm_show_info()` generated certificate details into `buf`, freed `buf`, 
and then passed that freed pointer to `SSL_DEBUG("%s", buf)`. When debug output 
is enabled this can read from freed memory.
   
   ## 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