alibaba/iot_remote_access

Stream pointer might be NULL

QiAnXinCodeSafe opened this issue · 0 comments

“fp”在这里被赋值

fp = fopen(DEFAULT_ROOT_PEM_NAEM, "w+");

当fopen失败,fp的值可能为NULL,导致空指针解引用

ret = fwrite(remote_debug_cert, 1, strlen(remote_debug_cert), fp);