We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onenet_mqtt.c - L: 404
*out_buff = ONENET_MALLOC(strlen(msg_str) + 3); if (!(*out_buff)) { LOG_E("ONENET mqtt upload string data failed! No memory for send buffer!"); return -RT_ENOMEM; } strncpy(&(*out_buff)[3], msg_str, strlen(msg_str)); *length = strlen(&(*out_buff)[3]);
*length 如此使用strlen存在很大隐藏风险
The text was updated successfully, but these errors were encountered:
软件包貌似一直没有更新,看来要学习下怎么提交PR。
Sorry, something went wrong.
No branches or pull requests
onenet_mqtt.c - L: 404
*length 如此使用strlen存在很大隐藏风险
The text was updated successfully, but these errors were encountered: