aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/autogen/wasm/ft/autowasm.c
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-10-06 11:47:25 +0000
committerbloodstalker <thabogre@gmail.com>2018-10-06 11:47:25 +0000
commit381a95e59c2e8d03d609fdb8945ba09ecaee405c (patch)
tree0a0eb9bae908352312c736137c3b5b96dca9a968 /bruiser/autogen/wasm/ft/autowasm.c
parentmore bug fixes (diff)
downloadmutator-381a95e59c2e8d03d609fdb8945ba09ecaee405c.tar.gz
mutator-381a95e59c2e8d03d609fdb8945ba09ecaee405c.zip
fixed more bugs on ft and ltg side. i had some fundamental misunderstandings on how clang encodes wasm objects. todo: test custom section getters and setters, garbage collection, repacking
Diffstat (limited to '')
-rw-r--r--bruiser/autogen/wasm/ft/autowasm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/bruiser/autogen/wasm/ft/autowasm.c b/bruiser/autogen/wasm/ft/autowasm.c
index a766d2a..043f220 100644
--- a/bruiser/autogen/wasm/ft/autowasm.c
+++ b/bruiser/autogen/wasm/ft/autowasm.c
@@ -30,7 +30,7 @@ int main(int argc, char **argv) {
wasm_lib_ret_t *lib_ret = read_aggr_wasm(wasm);
printf("finished reading\n");
-#if 1
+#if 0
printf("magic_number:%x\n",
lib_ret->obj->magic_number_container->magic_number);
printf("version:%x\n", lib_ret->obj->version_container->version);
@@ -229,12 +229,12 @@ int main(int argc, char **argv) {
}
#endif
- printf("sizeof magic:%d\n", sizeof(magic_number));
- printf("sizeof version:%d\n", sizeof(version));
- printf("current void count:%d\n", lib_ret->current_void_count);
- printf("void_train first:0x%x\n", lib_ret->void_train[0]);
- printf("void_train first:0x%x\n", lib_ret->void_train[1]);
- printf("void_train self address:0x%x\n", lib_ret->void_train);
+ //printf("sizeof magic:%d\n", sizeof(magic_number));
+ //printf("sizeof version:%d\n", sizeof(version));
+ //printf("current void count:%d\n", lib_ret->current_void_count);
+ //printf("void_train first:0x%x\n", lib_ret->void_train[0]);
+ //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);
// free(lib_ret->void_train[2]);