Add more checks to enhance security (#446)
add more checks to enhance security clear "wasi proc exit" exception before return to caller in wasm/aot call functions fix memory profiling issue change movdqa to movdqu in simd invokeNative asm codes to fix issue of unaligned address access move setjmp/longjmp from libc-builtin to libc-emcc fix zephyr platform compilation issue in latest zephyr version
This commit is contained in:
@ -87,6 +87,7 @@ os_free(void *ptr)
|
||||
{
|
||||
}
|
||||
|
||||
#if 0
|
||||
struct out_context {
|
||||
int count;
|
||||
};
|
||||
@ -100,13 +101,19 @@ char_out(int c, void *ctx)
|
||||
out_ctx->count++;
|
||||
return _stdout_hook_iwasm(c);
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
os_vprintf(const char *fmt, va_list ap)
|
||||
{
|
||||
#if 0
|
||||
struct out_context ctx = { 0 };
|
||||
z_vprintk(char_out, &ctx, fmt, ap);
|
||||
return ctx.count;
|
||||
#else
|
||||
vprintk(fmt, ap);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
void *
|
||||
|
||||
Reference in New Issue
Block a user