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

Various NetworkCommissioningWiFiDriver implementations have broken logging of spans #24271

Closed
bzbarsky-apple opened this issue Jan 4, 2023 · 0 comments · Fixed by #25318
Closed
Labels

Comments

@bzbarsky-apple
Copy link
Contributor

src/platform/Linux/NetworkCommissioningWiFiDriver.cpp:    ChipLogProgress(NetworkProvisioning, "LinuxNetworkCommissioningDelegate: SSID: %s",
src/platform/nxp/mw320/NetworkCommissioningWiFiDriver.cpp:    ChipLogProgress(NetworkProvisioning, "LinuxNetworkCommissioningDelegate: SSID: %s", networkId.data());
src/platform/webos/NetworkCommissioningWiFiDriver.cpp:    ChipLogProgress(NetworkProvisioning, "LinuxNetworkCommissioningDelegate: SSID: %s", networkId.data());

all of those are logging a ByteSpan's pointer as %s but there is no reason the data woul be null-terminated. This can lead to crashes and other bad things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant