aboutsummaryrefslogtreecommitdiffstats
path: root/test/autowasm.c
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-09-12 16:32:09 +0000
committerbloodstalker <thabogre@gmail.com>2018-09-12 16:32:09 +0000
commit1dfdeee85deabcb964438e2a1d96eb4d6d297cfd (patch)
treefd556eeb7adcd556b9f67e8809ee2a02f5d39650 /test/autowasm.c
parentfinally fixed (diff)
downloadfaultreiber-1dfdeee85deabcb964438e2a1d96eb4d6d297cfd.tar.gz
faultreiber-1dfdeee85deabcb964438e2a1d96eb4d6d297cfd.zip
update
Diffstat (limited to 'test/autowasm.c')
-rw-r--r--test/autowasm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/autowasm.c b/test/autowasm.c
index cbc6e5a..dc0db84 100644
--- a/test/autowasm.c
+++ b/test/autowasm.c
@@ -34,7 +34,7 @@ int main (int argc, char** argv) {
wasm_lib_ret_t* lib_ret = read_aggr_wasm(wasm);
printf("finished reading\n");
-#if 0
+#if 1
printf("magic_number:%x\n", lib_ret->obj->magic_number_container->magic_number);
printf("version:%x\n", lib_ret->obj->version_container->version);
@@ -166,16 +166,18 @@ int main (int argc, char** argv) {
printf("void_train first:0x%x\n", lib_ret->void_train[1]);
printf("void_train self address:0x%x\n", lib_ret->void_train);
//free(lib_ret->void_train[0]);
- //release_all(lib_ret->void_train, lib_ret->current_void_count);
+ release_all_wasm(lib_ret->void_train, lib_ret->current_void_count);
//free(lib_ret->void_train[2]);
//free(lib_ret->void_train[1]);
//free(lib_ret->void_train[0]);
+#if 0
for (int i = lib_ret->current_void_count - 1; i >= 0; --i) {
printf("%d:0x%x ", i, lib_ret->void_train[i]);
//if (i == 1) continue;
free(lib_ret->void_train[i]);
}
- free(lib_ret->void_train);
+#endif
+ //free(lib_ret->void_train);
free(lib_ret->obj);
free(lib_ret);
return 0;