Fix issues detected by Coverity (#1154)
wasm_c_api.c: add more checks, fix LOG_WARNING invalid specifier aot_emit_aot_file: fix strncpy max size length to copy posix.c: fix potential socket not close issue wasm-c-api samples: add return value checks for fseek/ftell cJSON.c: remove dead code
This commit is contained in:
@ -471,7 +471,7 @@ handle_threadstop_request(WASMGDBServer *server, char *payload)
|
||||
void
|
||||
handle_set_current_thread(WASMGDBServer *server, char *payload)
|
||||
{
|
||||
LOG_VERBOSE("%s:%s\n", __FUNCTION__, payload, payload);
|
||||
LOG_VERBOSE("%s:%s\n", __FUNCTION__, payload);
|
||||
if ('g' == *payload++) {
|
||||
uint64 tid = strtoll(payload, NULL, 16);
|
||||
if (tid > 0)
|
||||
|
||||
Reference in New Issue
Block a user