TencentCloud / tencentcloud-iot-sdk-embedded-c

SDK for connecting to Tencent Cloud IoT from a device using embedded C.
https://cloud.tencent.com/product/iothub
Other
149 stars 71 forks source link

fix: use size of destination as third argument of strncpy() #45

Open szsam opened 1 year ago

szsam commented 1 year ago

Calling 'strncpy' with the size of the source buffer as the third argument may result in a buffer overflow.