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:
Wenyong Huang
2020-11-24 14:00:09 +08:00
committed by GitHub
parent f4770ae8c8
commit 74be7a0b7c
24 changed files with 397 additions and 216 deletions

View File

@ -30,7 +30,7 @@ index c39fff6..4682d43 100644
)
diff --git a/test.c b/test.c
index df2d44b..8e81cdc 100644
index df2d44b..cb270de 100644
--- a/test.c
+++ b/test.c
@@ -18,6 +18,9 @@
@ -58,7 +58,7 @@ index df2d44b..8e81cdc 100644
fclose(f);
}
@@ -63,6 +67,7 @@ main(int argc, char *argv[]) {
@@ -63,9 +67,12 @@ main(int argc, char *argv[]) {
static int i = 0;
++i;
@ -66,6 +66,11 @@ index df2d44b..8e81cdc 100644
if (30 <= i && i < 40) {
dump_raw_frame(af, i);
}
+ if (i >= 1000)
+ break;
}
/*
* Run the decoder every time, so that we keep
diff --git a/third_party/aom/CMakeLists.txt b/third_party/aom/CMakeLists.txt
index 9dbe301..20c7be4 100644
--- a/third_party/aom/CMakeLists.txt