You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "fjpanag (via GitHub)" <gi...@apache.org> on 2023/04/12 14:28:18 UTC
[GitHub] [nuttx] fjpanag opened a new pull request, #9010: Added missing checks in strdup'ed strings.
fjpanag opened a new pull request, #9010:
URL: https://github.com/apache/nuttx/pull/9010
## Summary
Inspired by [this](https://github.com/apache/nuttx/pull/9009) I did a quick check on `strdup()`'s that their return string is not checked.
This PR fixes a couple of such cases.
## Impact
Potential bug fix.
## Testing
CI & build test only.
--
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] [nuttx] xiaoxiang781216 merged pull request #9010: Added missing checks in strdup'ed strings.
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #9010:
URL: https://github.com/apache/nuttx/pull/9010
--
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] [nuttx] pkarashchenko commented on a diff in pull request #9010: Added missing checks in strdup'ed strings.
Posted by "pkarashchenko (via GitHub)" <gi...@apache.org>.
pkarashchenko commented on code in PR #9010:
URL: https://github.com/apache/nuttx/pull/9010#discussion_r1164751673
##########
drivers/wireless/gs2200m.c:
##########
@@ -3531,6 +3537,7 @@ FAR void *gs2200m_register(FAR const char *devpath,
errout:
nxmutex_destroy(&dev->dev_lock);
+ kmm_free(dev->path);
Review Comment:
```suggestion
lib_free(dev->path);
```
--
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] [nuttx] fjpanag commented on a diff in pull request #9010: Added missing checks in strdup'ed strings.
Posted by "fjpanag (via GitHub)" <gi...@apache.org>.
fjpanag commented on code in PR #9010:
URL: https://github.com/apache/nuttx/pull/9010#discussion_r1165215862
##########
drivers/wireless/gs2200m.c:
##########
@@ -3531,6 +3537,7 @@ FAR void *gs2200m_register(FAR const char *devpath,
errout:
nxmutex_destroy(&dev->dev_lock);
+ kmm_free(dev->path);
Review Comment:
Fixed!
--
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