Skip to content

Commit 7affac0

Browse files
wasm_application.c: Avoid null pointer dereference (#3620)
1 parent c254bff commit 7affac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/iwasm/common/wasm_application.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ execute_func(WASMModuleInstanceCommon *module_inst, const char *name,
513513
bh_memcpy_s(&u.val, sizeof(double), &ud.d,
514514
sizeof(double));
515515
}
516-
if (endptr[0] == ':') {
516+
if (endptr && endptr[0] == ':') {
517517
uint64 sig;
518518
union ieee754_double ud;
519519
sig = strtoull(endptr + 1, &endptr, 0);

0 commit comments

Comments
 (0)