This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好 Kobi、
关于2022-090141:SimpleLink CC32XX SDK 整数溢出问题本主题的随附文件中的代码可能包含内存泄漏。
-第2618行对 responseCustomNode 执行了 malloc。
-第2619行如果内存被分配,如果 strlen 验证失败,该函数返回 HttpClient_EREQUESTHEADERALLOCFALED 而不释放响应 CustomNode ,因为它是在另一个错误中完成的-路径( if (responseCustomNode->CustomName != NULL))
可能是正确的、因为我没有时间更详细地检查使用的列表管理。
此致、
罗曼
您是对的-您可以添加以下内容来修复此问题(在第2647行之前):
if(responseCustomNoe) free(responseCustomNoe);
我们将在下一版本中添加修复程序。
感谢您发送通知!
您好 Kobi、
此外、还应检查从第2666行的 malloc 开始的行为。
此致、非常感谢、
罗曼