forked from openthread/openthread
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] valgrind reported memory access bugs (openthread#9833)
* posix: check for nlmsg error tlv attributes if we couldn't set NETLINK_EXT_ACK, there's no extra nlmsg attributes in the error. avoid UB and walking uninitialized memory by checking the flag for those attributes. for us, this avoids segfaults and in one instance, an infinite loop while walking the non-existant attributes. Signed-off-by: Nick Owens <[email protected]> * posix: zero initialize sigaction struct before use this removes a valgrind warning about use of uninitialized memory in a syscall when backtrace is enabled. Signed-off-by: Nick Owens <[email protected]> * key_manager: zero initialize otSecurityPolicy valgrind reports that otSecurityPolicy is used uninitialized, so just make it zero. clear all bytes when setting to default Signed-off-by: Nick Owens <[email protected]>
- Loading branch information
1 parent
24e9306
commit 1a2d5f0
Showing
4 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters