-
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
Fix null pointer issue in CHIPMemString #35840
Conversation
Review changes with SemanticDiff. |
Good Catch! can you please sign the CLA though. |
@Alami-Amine Thank you for the guidance! I've rechecked the CLA, and it should be signed correctly. |
PR #35840: Size comparison from 6bbe1d6 to c32fc4d Full report (88 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
Description
CHIPMemString.h:127:22: runtime error: null pointer passed as argument 2, which is declared to never be null
Changes
CHIPMemString
.Reproducing
./out/linux-x64-all-clusters-ubsan-clang/chip-all-clusters-app ... [1727661001.811740][5218:5218] CHIP:EM: Flushed pending ack for MessageCounter:263064390 on exchange 45711r [1727661001.812225][5218:5218] CHIP:FP: Validating NOC chain [1727661001.813018][5218:5218] CHIP:FP: NOC chain validation successful ../../examples/all-clusters-app/linux/third_party/connectedhomeip/src/lib/support/CHIPMemString.h:127:22: runtime error: null pointer passed as argument 2, which is declared to never be null /usr/include/string.h:44:28: note: nonnull attribute specified here SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../examples/all-clusters-app/linux/third_party/connectedhomeip/src/lib/support/CHIPMemString.h:127:22 [1727661001.813423][5218:5218] CHIP:FP: Added new fabric at index: 0x1 [1727661001.813438][5218:5218] CHIP:FP: Assigned compressed fabric ID: 0x653BF2694F51D787, node ID: 0x0000000000000001 [1727661001.813445][5218:5218] CHIP:TS: Last Known Good Time: 2023-10-14T01:16:48