We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee62523 commit 8d79672Copy full SHA for 8d79672
core/iwasm/common/wasm_shared_memory.c
@@ -124,8 +124,8 @@ notify_stale_threads_on_exception(WASMModuleInstanceCommon *module_inst)
124
125
/* allocate memory */
126
uint32 total_size = sizeof(void *) * total_elem_count;
127
- void *temp_addr[total_size];
128
- memset(temp_addr, 0, sizeof(temp_addr));
+ void *temp_addr[total_elem_count];
+ memset(temp_addr, 0, total_size);
129
130
args->addr = temp_addr;
131
0 commit comments