Skip to content
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

[SL-UP] Bugfix/matter shell crash nullptr #125

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

lpbeliveau-silabs
Copy link
Contributor

When using the matter shell, a combination of:
backspace + enter or any special characters such as arrow keys would cause
ExecCommand to be call with argc > 0, but argv == nulptr, which would crash the app.

This was tested using UART logs and screen command.

Added a nullptr check to prevent the crashes, in the longterm we might want to investigate how the filtering left us with argc > 0 in those cases.

@lpbeliveau-silabs lpbeliveau-silabs requested a review from a team as a code owner November 22, 2024 19:49
@mkardous-silabs mkardous-silabs added the sl-up This TAG indicates that this commit needs to be upstreamed to CSA before its next release. label Nov 22, 2024
@jmartinez-silabs jmartinez-silabs merged commit 1c88528 into release_2.5-1.4 Nov 22, 2024
10 of 12 checks passed
@jmartinez-silabs jmartinez-silabs deleted the bugfix/matter_shell_crash_nullptr branch November 22, 2024 22:02
mkardous-silabs pushed a commit that referenced this pull request Dec 14, 2024
* [SL-UP] Bugfix/silabs out rtt removal (#142)

* [SL-UP] Bugfix/matter shell crash nullptr (#125)

* Added checks on null ptr to prevent uart shell crash and modified ICD shell commands to be compatible with our internal structure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sl-up This TAG indicates that this commit needs to be upstreamed to CSA before its next release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants