Use Compound configurations in libpng launcher fuzzer (#1676)
This commit is contained in:
parent
cc1ebb29f7
commit
57296a6750
@ -58,7 +58,7 @@ windows_alias = "unsupported"
|
|||||||
[tasks.lib_unix]
|
[tasks.lib_unix]
|
||||||
script_runner="@shell"
|
script_runner="@shell"
|
||||||
script='''
|
script='''
|
||||||
cd libpng-1.6.37 && ./configure --enable-shared=no --with-pic=yes --enable-hardware-optimizations=yes
|
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
|
||||||
cd "${PROJECT_DIR}"
|
cd "${PROJECT_DIR}"
|
||||||
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
|
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
|
||||||
'''
|
'''
|
||||||
|
@ -16,10 +16,14 @@ pub fn main() {
|
|||||||
Configuration::GenerateCoverageMap,
|
Configuration::GenerateCoverageMap,
|
||||||
Configuration::CmpLog,
|
Configuration::CmpLog,
|
||||||
]))
|
]))
|
||||||
.add_configuration(Configuration::UndefinedBehaviorSanitizer)
|
.add_configuration(Configuration::Compound(vec![
|
||||||
.add_configuration(Configuration::AddressSanitizer)
|
Configuration::GenerateCoverageMap,
|
||||||
// .add_arg("-fsanitize-coverage=trace-pc-guard,trace-cmp")
|
Configuration::AddressSanitizer,
|
||||||
// .add_arg("-fsanitize=address")
|
]))
|
||||||
|
.add_configuration(Configuration::Compound(vec![
|
||||||
|
Configuration::GenerateCoverageMap,
|
||||||
|
Configuration::UndefinedBehaviorSanitizer,
|
||||||
|
]))
|
||||||
.run()
|
.run()
|
||||||
.expect("Failed to run the wrapped libtool")
|
.expect("Failed to run the wrapped libtool")
|
||||||
{
|
{
|
||||||
|
@ -29,10 +29,14 @@ pub fn main() {
|
|||||||
Configuration::GenerateCoverageMap,
|
Configuration::GenerateCoverageMap,
|
||||||
Configuration::CmpLog,
|
Configuration::CmpLog,
|
||||||
]))
|
]))
|
||||||
.add_configuration(Configuration::UndefinedBehaviorSanitizer)
|
.add_configuration(Configuration::Compound(vec![
|
||||||
.add_configuration(Configuration::AddressSanitizer)
|
Configuration::GenerateCoverageMap,
|
||||||
// .add_arg("-fsanitize-coverage=trace-pc-guard,trace-cmp")
|
Configuration::AddressSanitizer,
|
||||||
// .add_arg("-fsanitize=address")
|
]))
|
||||||
|
.add_configuration(Configuration::Compound(vec![
|
||||||
|
Configuration::GenerateCoverageMap,
|
||||||
|
Configuration::UndefinedBehaviorSanitizer,
|
||||||
|
]))
|
||||||
.run()
|
.run()
|
||||||
.expect("Failed to run the wrapped compiler")
|
.expect("Failed to run the wrapped compiler")
|
||||||
{
|
{
|
||||||
|
@ -16,10 +16,14 @@ pub fn main() {
|
|||||||
Configuration::GenerateCoverageMap,
|
Configuration::GenerateCoverageMap,
|
||||||
Configuration::CmpLog,
|
Configuration::CmpLog,
|
||||||
]))
|
]))
|
||||||
.add_configuration(Configuration::UndefinedBehaviorSanitizer)
|
.add_configuration(Configuration::Compound(vec![
|
||||||
.add_configuration(Configuration::AddressSanitizer)
|
Configuration::GenerateCoverageMap,
|
||||||
// .add_arg("-fsanitize-coverage=trace-pc-guard,trace-cmp")
|
Configuration::AddressSanitizer,
|
||||||
// .add_arg("-fsanitize=address")
|
]))
|
||||||
|
.add_configuration(Configuration::Compound(vec![
|
||||||
|
Configuration::GenerateCoverageMap,
|
||||||
|
Configuration::UndefinedBehaviorSanitizer,
|
||||||
|
]))
|
||||||
.run()
|
.run()
|
||||||
.expect("Failed to run the wrapped libtool")
|
.expect("Failed to run the wrapped libtool")
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user