You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/09/13 12:00:28 UTC
[GitHub] [incubator-nuttx] juniskane opened a new pull request #4529: libc/unistd: getopt: add some NULL pointer checks
juniskane opened a new pull request #4529:
URL: https://github.com/apache/incubator-nuttx/pull/4529
## Summary
This patch adds two asserts and one branch condition to check potential NULL pointer dereferences in the (quite complex) new getopt() implementation. This silences what I believe is false-positive error reported by Clang-analyzer.
## Impact
Minimal, use of assert is somewhat cleaner mechanism for debugging than receiving a hardfault.
## Testing
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #4529: libc/unistd: getopt: add some NULL pointer checks
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #4529:
URL: https://github.com/apache/incubator-nuttx/pull/4529
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org