aws / aws-iot-device-sdk-embedded-C

SDK for connecting to AWS IoT from a device using embedded C.
MIT License
975 stars 623 forks source link

demos: Fix unbounded write in sscanf call #1859

Closed szsam closed 1 year ago

szsam commented 1 year ago

Buffer write operations that do not control the length of data written may overflow.

Description of changes: Change format specifier from "%s" to "%15s".

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.