Skip to content

fix potential buffer overflows#719

Open
mjcross wants to merge 1 commit intoraspberrypi:developfrom
mjcross:fix-mqtt-client
Open

fix potential buffer overflows#719
mjcross wants to merge 1 commit intoraspberrypi:developfrom
mjcross:fix-mqtt-client

Conversation

@mjcross
Copy link
Contributor

@mjcross mjcross commented Nov 13, 2025

Replace two unsafe uses of strncpy() in the MQTT client example, which would return unterminated strings if an over-long topic string was truncated

Replace two unsafe uses of strncpy(): it doesn't terminate a string if it truncates it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant