-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sys/net/rpl: fix possible NULL dereference #19611
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK. I tracked gnrc_rpl_validation_DAO_ACK()
until the first access of dst without any prior NULL check.
I see no user that uses this with a NULL argument, nor is it documented as optional -- is silently returning a good thing to do here? (I'd softly lean towards "passing NULL to pointer arguments that don't say they can be NULL is generally not good"). |
I think github cut of crucial context here. Just one line above the snipped shown here we have: #ifdef MODULE_NETSTATS_RPL
gnrc_rpl_netstats_rx_DAO_ACK(&gnrc_rpl_netstats, len, (dst && !ipv6_addr_is_multicast(dst)));
#endif As there is already a null pointer check for |
17425: cpu/rpx0xx: initial PIO support r=benpicco a=fabian18 19611: sys/net/rpl: fix possible NULL dereference r=benpicco a=maribu ### Contribution description As the title says 19640: core/thread: drop unused thread_arch_t r=benpicco a=maribu ### Contribution description No architecture makes use of thread_arch_t anymore, so let's drop it. Co-authored-by: Fabian Hüßler <fabian.huessler@st.ovgu.de> Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
Build failed (retrying...): |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Thx :) |
Contribution description
As the title says
Testing procedure
No regression in RPL. (Beware: Fully untested!)
Issues/PRs references
fixes #15006 (or rather the last issue of the three instances reported there)