Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple C++ exceptions fuzzer #13485

Draft
wants to merge 47 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
dd337f1
wip [ci skip]
kripken Feb 10, 2021
39f9f56
work [ci skip]
kripken Feb 10, 2021
09d5cc0
work [ci skip]
kripken Feb 11, 2021
787c1db
work [ci skip]
kripken Feb 11, 2021
caad8f2
work [ci skip]
kripken Feb 11, 2021
e9df3bf
work [ci skip]
kripken Feb 11, 2021
c465d78
work [ci skip]
kripken Feb 11, 2021
937583a
work [ci skip]
kripken Feb 11, 2021
94e1114
work [ci skip]
kripken Feb 11, 2021
d086d10
work [ci skip]
kripken Feb 11, 2021
81ca4dc
work [ci skip]
kripken Feb 11, 2021
26fe71d
work [ci skip]
kripken Feb 11, 2021
68477a5
work [ci skip]
kripken Feb 11, 2021
f1c312f
work [ci skip]
kripken Feb 11, 2021
216a356
work
kripken Feb 11, 2021
be28f34
cleanup
kripken Feb 12, 2021
efa5b9f
fix [ci skip]
kripken Feb 12, 2021
0825293
Merge remote-tracking branch 'origin/master' into fuzz-exceptions
kripken Feb 12, 2021
1546c2d
wip
kripken Feb 12, 2021
351ff2e
add reducer
kripken Feb 12, 2021
f6d2066
reducer
kripken Feb 12, 2021
8e99f9d
cleanup [ci skip]
kripken Feb 12, 2021
f0a3757
cleaner [ci skip]
kripken Feb 12, 2021
c025832
reduce initial values too [ci skip]
kripken Feb 12, 2021
af844c1
more [ci skip]
kripken Feb 12, 2021
d564d72
more [ci skip]
kripken Feb 12, 2021
b79f209
undo [ci skip]
kripken Feb 12, 2021
6c033f0
only compile to an object for now, as libc++abi now fails [ci skip]
kripken Feb 16, 2021
40ec92d
Allow reduction for a specific error [ci skip]
kripken Feb 16, 2021
bb7a8d6
calls [ci skip]
kripken Feb 17, 2021
141fe6e
catch(int) [ci skip]
kripken Feb 17, 2021
7990eb3
raii [ci skip]
kripken Feb 17, 2021
4304f13
nested statements [ci skip]
kripken Feb 17, 2021
6df96ef
more catches [ci skip]
kripken Feb 17, 2021
8efcfc4
more
kripken Feb 17, 2021
907aca6
Merge remote-tracking branch 'origin/master' into fuzz-exceptions
kripken Feb 17, 2021
264b364
Merge remote-tracking branch 'origin/master' into fuzz-exceptions
kripken Feb 18, 2021
7438873
more testing + formatting [ci skip]
kripken Feb 19, 2021
e3f4c03
Merge remote-tracking branch 'origin/master' into fuzz-exceptions
kripken Feb 22, 2021
a6f43e3
Test execution as well [ci skip]
kripken Feb 22, 2021
a25edb3
fuzz execution as well [ci skip]
kripken Feb 22, 2021
0e0c8f3
work [ci skip]
kripken Feb 24, 2021
65609fc
llvm [ci skip]
kripken Feb 25, 2021
742e9c4
if-else [ci skip]
kripken Feb 25, 2021
c62403a
work
kripken Feb 25, 2021
297e70a
Merge remote-tracking branch 'origin/master' into fuzz-exceptions
kripken Feb 27, 2021
023d93f
updates [ci skip]
kripken Feb 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions emcc.py
Original file line number Diff line number Diff line change
@@ -1909,8 +1909,8 @@ def get_full_import_name(name):
shared.Settings.MAXIMUM_MEMORY > 2 * 1024 * 1024 * 1024)):
shared.Settings.CAN_ADDRESS_2GB = 1

if shared.Settings.EXCEPTION_HANDLING and shared.Settings.OPT_LEVEL >= 2 and not compile_only:
exit_with_error('wasm exception handling support is still experimental, and linking with -O2+ is not supported yet')
#if shared.Settings.EXCEPTION_HANDLING and shared.Settings.OPT_LEVEL >= 2 and not compile_only:
# exit_with_error('wasm exception handling support is still experimental, and linking with -O2+ is not supported yet')

shared.Settings.EMSCRIPTEN_VERSION = shared.EMSCRIPTEN_VERSION
shared.Settings.PROFILING_FUNCS = options.profiling_funcs
2 changes: 2 additions & 0 deletions emscripten.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
# Copyright 2010 The Emscripten Authors. All rights reserved.
# Emscripten is available under two separate licenses, the MIT license and the
# University of Illinois/NCSA Open Source License. Both these licenses can be
@@ -430,6 +431,7 @@ def finalize_wasm(infile, outfile, memfile, DEBUG):

if shared.Settings.DEBUG_LEVEL >= 3:
args.append('--dwarf')
# sys.exit(0)
stdout = building.run_binaryen_command('wasm-emscripten-finalize',
infile=infile,
outfile=outfile if modify_wasm else None,
Loading
Oops, something went wrong.