aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/wasm
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-07-19 00:09:20 +0000
committerbloodstalker <thabogre@gmail.com>2018-07-19 00:09:20 +0000
commit82dff3bff1b0d97585a2cbd574879057405cf363 (patch)
tree6b058fa70eb5176e21e6e51c80ff7d281801f565 /bruiser/wasm
parentfixing travis (diff)
downloadmutator-82dff3bff1b0d97585a2cbd574879057405cf363.tar.gz
mutator-82dff3bff1b0d97585a2cbd574879057405cf363.zip
a fix for the luatablegen json file, added a new option to load.py, minor cosmetic changes
Diffstat (limited to 'bruiser/wasm')
-rwxr-xr-xbruiser/wasm/parse.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/bruiser/wasm/parse.py b/bruiser/wasm/parse.py
index 424a2b6..9d7140d 100755
--- a/bruiser/wasm/parse.py
+++ b/bruiser/wasm/parse.py
@@ -25,14 +25,12 @@ class ParsedStruct:
self.version_number = int()
self.section_list = []
-
# like the above. currently unused
class ParsedStructV2:
def __init__(self, version_number, section_list):
self.version_number = version_number
self.section_list = section_list
-
# @DEVI-Deprecated-convert a bytearray to int
def Conver2Int(little_endian, size, bytelist):
modifier = size - 1
@@ -971,6 +969,7 @@ def premain(argparser):
if argparser.args.wasm:
for file_path in argparser.args.wasm:
module = interpreter.parse(file_path)
+ print(type(module))
interpreter.appendmodule(module)
if argparser.args.dbg or argparser.args.dbgsection:
interpreter.dump_sections(module, argparser.args.dbgsection)
@@ -988,8 +987,8 @@ def premain(argparser):
DumpLinearMems(ms.Linear_Memory, argparser.getMEMDUMP())
if argparser.args.run:
vm.run()
- # merklizer = Merklizer(ms.Linear_Memory[0][0:512], module)
- # treelength, hashtree = merklizer.run()
+ #merklizer = Merklizer(ms.Linear_Memory[0][0:512], module)
+ #treelength, hashtree = merklizer.run()
if argparser.args.interactive:
variables = globals().copy()