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
148 stars 71 forks source link

关闭ATsocket时,未判断指针是否为NULL #32

Closed xin5683 closed 3 years ago

xin5683 commented 3 years ago

https://github.com/tencentyun/qcloud-iot-sdk-embedded-c/blob/5381d0efd99efe96337c29ecbdf64c3e40a1cb59/sdk_src/network/at_socket/at_socket_inf.c#L215-L227

如果_at_socket_find 获取返回为NULL,执行“pAtSocket->state = eSOCKET_CLOSED; ”,访问0地址会宕机。

spikelin commented 3 years ago

已修复