-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fixing nil crashes #34362
Fixing nil crashes #34362
Conversation
PR #34362: Size comparison from 0840ca6 to fc8df7c Full report (20 builds for cc13x4_26x4, cc32xx, mbed, nrfconnect, nxp, qpg, stm32, tizen)
|
PR #34362: Size comparison from 0840ca6 to 36ed49a Full report (49 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, tizen)
|
4966f5f
to
0f0a975
Compare
PR #34362: Size comparison from 0840ca6 to 0f0a975 Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
0f0a975
to
5d49f82
Compare
PR #34362: Size comparison from a30dd12 to 5d49f82 Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
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.
So the real fix here is making sure we don't pass nil to isEqualToNumber:
, right? The rest is fixing other correctness issues and/or other issues altogether.
Would be good for the commit message to make this clear....
The fix here is to fix a crasher, where our comparators compare nil, which crashes. When seeing this, I fixed this same anti-pattern in files that use it. I'm also cleaning up imports, since the files did not import the utilities function, so builds failed. I moved our includes to be imports, as is correct in the files affected. I mentioned I'll have a followup to fix all of these.
I don't think commit messages require review, as this is a squashed commit anyway from my attempts to fix builds as I discovered import breakage (well, lack of imports). |
PR #34362: Size comparison from a30dd12 to 3bc1f09 Full report (54 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, tizen)
|
3bc1f09
to
37c54cd
Compare
PR #34362: Size comparison from e73be38 to 37c54cd Full report (80 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
* Fixing imports in these files... needs a followup with proper xc-config * Moving to internal * Restyled by clang-format --------- Co-authored-by: Restyled.io <[email protected]>
Reported nil crashes affecting customers, fixing patterns across Matter.framework.