diff options
author | Ben Smith <binjimin@gmail.com> | 2016-12-27 16:05:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-27 16:05:34 -0800 |
commit | 2177e7517b857d557cbf9b8477c31f96a8ed66bb (patch) | |
tree | f2157f40cd685026f3dda8d442d805df9e3be2d6 /test/run-roundtrip.py | |
parent | 1448686215848cc581e2bc5a69e6492fceec4f60 (diff) | |
download | wabt-2177e7517b857d557cbf9b8477c31f96a8ed66bb.tar.gz wabt-2177e7517b857d557cbf9b8477c31f96a8ed66bb.tar.bz2 wabt-2177e7517b857d557cbf9b8477c31f96a8ed66bb.zip |
Fix some binary reader bugs found by fuzzing (#261)
* Change assertions in apply-names to failures
* Fix off-by-one bug in binary-reader-ast get_label_at
* Keep track of last known section code, so the same section cannot be
specified twice, with a custom section between.
Diffstat (limited to 'test/run-roundtrip.py')
-rwxr-xr-x | test/run-roundtrip.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/run-roundtrip.py b/test/run-roundtrip.py index b40eb852..01059e65 100755 --- a/test/run-roundtrip.py +++ b/test/run-roundtrip.py @@ -115,6 +115,7 @@ def main(args): parser.add_argument('-p', '--print-cmd', help='print the commands that are run.', action='store_true') parser.add_argument('--use-libc-allocator', action='store_true') + parser.add_argument('--no-check', action='store_true') parser.add_argument('--debug-names', action='store_true') parser.add_argument('--generate-names', action='store_true') parser.add_argument('file', help='test file.') @@ -125,6 +126,7 @@ def main(args): error_cmdline=options.error_cmdline) wast2wasm.AppendOptionalArgs({ '--debug-names': options.debug_names, + '--no-check': options.no_check, '--use-libc-allocator': options.use_libc_allocator }) |