diff options
author | bloodstalker <thabogre@gmail.com> | 2018-08-05 11:22:05 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-08-05 11:22:05 +0000 |
commit | 2a41a12e8063af2c7bd703957676123fb004fc97 (patch) | |
tree | c55d7ab62e27e55f730bb87a70764ca08fcfc2f4 /test/autowasm.c | |
parent | update (diff) | |
download | faultreiber-2a41a12e8063af2c7bd703957676123fb004fc97.tar.gz faultreiber-2a41a12e8063af2c7bd703957676123fb004fc97.zip |
update
Diffstat (limited to 'test/autowasm.c')
-rw-r--r-- | test/autowasm.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/autowasm.c b/test/autowasm.c index b62ad34..be2800d 100644 --- a/test/autowasm.c +++ b/test/autowasm.c @@ -13,6 +13,20 @@ int main (int argc, char** argv) { int wasm = open("./test.wasm", O_RDONLY); malloc_all(); + read_aggr(wasm); + magic_number* mn = ft_ret_magic_number(); + version* v = ft_ret_version(); + W_Type_Section* ts = ft_ret_W_Type_Section(); + printf("magic_number:%x\n", mn->magic_number); + printf("version:%d\n", v->version); + printf("type section id:%d\n", ts->id); + printf("type section payloadlength:%d\n", ts->payloadlength); + printf("type_section entry count:%d\n", ts->count); + for (int i=0; i < 7; ++i) { + //printf("param_count:%d\n",ts->entries[i]->param_count); + //printf("param_count:%d\n",ts->entries[i]); + } + #if 0 uint64_t test_u = 0U; int64_t test_s = 0; |