File tree Expand file tree Collapse file tree 4 files changed +25
-13
lines changed
fuzzers/libfuzzer_libpng_launcher Expand file tree Collapse file tree 4 files changed +25
-13
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ windows_alias = "unsupported"
58
58
[tasks .lib_unix ]
59
59
script_runner =" @shell"
60
60
script ='''
61
- cd libpng-1.6.37 && ./configure --enable-shared=no --with-pic=yes --enable-hardware-optimizations=yes
61
+ cd libpng-1.6.37 && CC="${CARGO_TARGET_DIR}/${PROFILE_DIR}/libafl_cc" CXX="${CARGO_TARGET_DIR}/${PROFILE_DIR}/libafl_cxx" ./configure --enable-shared=no --with-pic=yes --enable-hardware-optimizations=yes
62
62
cd "${PROJECT_DIR}"
63
63
make -C libpng-1.6.37 CC="${CARGO_TARGET_DIR}/${PROFILE_DIR}/libafl_cc" CXX="${CARGO_TARGET_DIR}/${PROFILE_DIR}/libafl_cxx" LIBTOOL=${CARGO_TARGET_DIR}/${PROFILE_DIR}/libafl_libtool
64
64
'''
Original file line number Diff line number Diff line change @@ -16,10 +16,14 @@ pub fn main() {
16
16
Configuration :: GenerateCoverageMap ,
17
17
Configuration :: CmpLog ,
18
18
] ) )
19
- . add_configuration ( Configuration :: UndefinedBehaviorSanitizer )
20
- . add_configuration ( Configuration :: AddressSanitizer )
21
- // .add_arg("-fsanitize-coverage=trace-pc-guard,trace-cmp")
22
- // .add_arg("-fsanitize=address")
19
+ . add_configuration ( Configuration :: Compound ( vec ! [
20
+ Configuration :: GenerateCoverageMap ,
21
+ Configuration :: AddressSanitizer ,
22
+ ] ) )
23
+ . add_configuration ( Configuration :: Compound ( vec ! [
24
+ Configuration :: GenerateCoverageMap ,
25
+ Configuration :: UndefinedBehaviorSanitizer ,
26
+ ] ) )
23
27
. run ( )
24
28
. expect ( "Failed to run the wrapped libtool" )
25
29
{
Original file line number Diff line number Diff line change @@ -29,10 +29,14 @@ pub fn main() {
29
29
Configuration :: GenerateCoverageMap ,
30
30
Configuration :: CmpLog ,
31
31
] ) )
32
- . add_configuration ( Configuration :: UndefinedBehaviorSanitizer )
33
- . add_configuration ( Configuration :: AddressSanitizer )
34
- // .add_arg("-fsanitize-coverage=trace-pc-guard,trace-cmp")
35
- // .add_arg("-fsanitize=address")
32
+ . add_configuration ( Configuration :: Compound ( vec ! [
33
+ Configuration :: GenerateCoverageMap ,
34
+ Configuration :: AddressSanitizer ,
35
+ ] ) )
36
+ . add_configuration ( Configuration :: Compound ( vec ! [
37
+ Configuration :: GenerateCoverageMap ,
38
+ Configuration :: UndefinedBehaviorSanitizer ,
39
+ ] ) )
36
40
. run ( )
37
41
. expect ( "Failed to run the wrapped compiler" )
38
42
{
Original file line number Diff line number Diff line change @@ -16,10 +16,14 @@ pub fn main() {
16
16
Configuration :: GenerateCoverageMap ,
17
17
Configuration :: CmpLog ,
18
18
] ) )
19
- . add_configuration ( Configuration :: UndefinedBehaviorSanitizer )
20
- . add_configuration ( Configuration :: AddressSanitizer )
21
- // .add_arg("-fsanitize-coverage=trace-pc-guard,trace-cmp")
22
- // .add_arg("-fsanitize=address")
19
+ . add_configuration ( Configuration :: Compound ( vec ! [
20
+ Configuration :: GenerateCoverageMap ,
21
+ Configuration :: AddressSanitizer ,
22
+ ] ) )
23
+ . add_configuration ( Configuration :: Compound ( vec ! [
24
+ Configuration :: GenerateCoverageMap ,
25
+ Configuration :: UndefinedBehaviorSanitizer ,
26
+ ] ) )
23
27
. run ( )
24
28
. expect ( "Failed to run the wrapped libtool" )
25
29
{
You can’t perform that action at this time.
0 commit comments