From 5f65a1192baab49efe95217a35c238d7e22c2401 Mon Sep 17 00:00:00 2001 From: toka Date: Sat, 16 Dec 2023 16:12:58 +0900 Subject: [PATCH 1/3] Last clenup --- fuzzers/frida_executable_libpng/Cargo.toml | 1 - fuzzers/frida_executable_libpng/Makefile.toml | 2 +- fuzzers/frida_libpng/Makefile.toml | 2 +- fuzzers/fuzzbench_fork_qemu/Makefile.toml | 2 +- fuzzers/fuzzbench_qemu/Makefile.toml | 2 +- fuzzers/libfuzzer_libpng/Makefile.toml | 4 ++-- fuzzers/libfuzzer_libpng/README.md | 2 +- fuzzers/libfuzzer_libpng_accounting/Makefile.toml | 2 +- fuzzers/libfuzzer_libpng_accounting/README.md | 2 +- fuzzers/libfuzzer_libpng_aflpp_ui/Makefile.toml | 4 ++-- fuzzers/libfuzzer_libpng_aflpp_ui/README.md | 2 +- fuzzers/libfuzzer_libpng_centralized/Makefile.toml | 2 +- fuzzers/libfuzzer_libpng_centralized/README.md | 2 +- fuzzers/libfuzzer_libpng_cmin/Makefile.toml | 4 ++-- fuzzers/libfuzzer_libpng_cmin/README.md | 2 +- fuzzers/libfuzzer_libpng_ctx/Makefile.toml | 2 +- fuzzers/libfuzzer_libpng_ctx/README.md | 2 +- fuzzers/libfuzzer_libpng_launcher/Makefile.toml | 2 +- fuzzers/libfuzzer_libpng_launcher/README.md | 2 +- fuzzers/libfuzzer_libpng_norestart/Makefile.toml | 2 +- fuzzers/libfuzzer_libpng_norestart/README.md | 2 +- fuzzers/libfuzzer_libpng_tcp_manager/Makefile.toml | 4 ++-- fuzzers/libfuzzer_libpng_tcp_manager/README.md | 2 +- fuzzers/libfuzzer_reachability/README.md | 2 +- fuzzers/nautilus_sync/Makefile.toml | 2 +- fuzzers/qemu_cmin/Makefile.toml | 4 ++-- fuzzers/qemu_coverage/Makefile.toml | 4 ++-- fuzzers/qemu_launcher/Makefile.toml | 4 ++-- libafl_frida/Cargo.toml | 2 +- libafl_frida/src/asan/asan_rt.rs | 5 +---- libafl_frida/src/utils.rs | 8 +++----- 31 files changed, 39 insertions(+), 45 deletions(-) diff --git a/fuzzers/frida_executable_libpng/Cargo.toml b/fuzzers/frida_executable_libpng/Cargo.toml index 38844df516..da135b32d4 100644 --- a/fuzzers/frida_executable_libpng/Cargo.toml +++ b/fuzzers/frida_executable_libpng/Cargo.toml @@ -28,7 +28,6 @@ reqwest = { version = "0.11.4", features = ["blocking"] } [dependencies] libafl = { path = "../../libafl/", features = [ "std", "llmp_compression", "llmp_bind_public", "frida_cli" ] } #, "llmp_small_maps", "llmp_debug"]} libafl_bolts = { path = "../../libafl_bolts/" } -capstone = "0.11.0" frida-gum = { version = "0.13.2", features = [ "auto-download", "event-sink", "invocation-listener"] } libafl_frida = { path = "../../libafl_frida", features = ["cmplog"] } libafl_targets = { path = "../../libafl_targets", features = ["sancov_cmplog"] } diff --git a/fuzzers/frida_executable_libpng/Makefile.toml b/fuzzers/frida_executable_libpng/Makefile.toml index f0922b850c..ae3c57fe99 100644 --- a/fuzzers/frida_executable_libpng/Makefile.toml +++ b/fuzzers/frida_executable_libpng/Makefile.toml @@ -21,7 +21,7 @@ condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ''' # Library diff --git a/fuzzers/frida_libpng/Makefile.toml b/fuzzers/frida_libpng/Makefile.toml index d264a7d5c4..9783c200cb 100644 --- a/fuzzers/frida_libpng/Makefile.toml +++ b/fuzzers/frida_libpng/Makefile.toml @@ -22,7 +22,7 @@ condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ''' # Library diff --git a/fuzzers/fuzzbench_fork_qemu/Makefile.toml b/fuzzers/fuzzbench_fork_qemu/Makefile.toml index 07a34dadfe..05baac5e29 100644 --- a/fuzzers/fuzzbench_fork_qemu/Makefile.toml +++ b/fuzzers/fuzzbench_fork_qemu/Makefile.toml @@ -22,7 +22,7 @@ condition = { files_not_exist = [ "./libpng-1.6.37" ] } script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ''' # fuzzer diff --git a/fuzzers/fuzzbench_qemu/Makefile.toml b/fuzzers/fuzzbench_qemu/Makefile.toml index 6a4e99af18..700e0b1de6 100644 --- a/fuzzers/fuzzbench_qemu/Makefile.toml +++ b/fuzzers/fuzzbench_qemu/Makefile.toml @@ -22,7 +22,7 @@ condition = { files_not_exist = [ "./libpng-1.6.37" ] } script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ''' # fuzzer diff --git a/fuzzers/libfuzzer_libpng/Makefile.toml b/fuzzers/libfuzzer_libpng/Makefile.toml index 4f6995ab18..c964d50182 100644 --- a/fuzzers/libfuzzer_libpng/Makefile.toml +++ b/fuzzers/libfuzzer_libpng/Makefile.toml @@ -25,8 +25,8 @@ windows_alias = "unsupported" condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' -curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output libpng-1.6.37.tar.xz -tar -xvf libpng-1.6.37.tar.xz +curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output libpng-1.6.37.tar.gz +tar -xvf libpng-1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng/README.md b/fuzzers/libfuzzer_libpng/README.md index 3e3c55da4b..0fc8b1afb8 100644 --- a/fuzzers/libfuzzer_libpng/README.md +++ b/fuzzers/libfuzzer_libpng/README.md @@ -27,7 +27,7 @@ The compiler wrappers, `libafl_cc` and `libafl_cxx`, will end up in `./target/re Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_libpng_accounting/Makefile.toml b/fuzzers/libfuzzer_libpng_accounting/Makefile.toml index cc0486fa3b..9ec9c6bcad 100644 --- a/fuzzers/libfuzzer_libpng_accounting/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_accounting/Makefile.toml @@ -26,7 +26,7 @@ condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng_accounting/README.md b/fuzzers/libfuzzer_libpng_accounting/README.md index a11723fa11..fd9ae3bb54 100644 --- a/fuzzers/libfuzzer_libpng_accounting/README.md +++ b/fuzzers/libfuzzer_libpng_accounting/README.md @@ -20,7 +20,7 @@ In addition, it will also build two C and C++ compiler wrappers (bin/libafl_c(li Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_libpng_aflpp_ui/Makefile.toml b/fuzzers/libfuzzer_libpng_aflpp_ui/Makefile.toml index 7f21b8f411..61b73f6c83 100644 --- a/fuzzers/libfuzzer_libpng_aflpp_ui/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_aflpp_ui/Makefile.toml @@ -25,8 +25,8 @@ windows_alias = "unsupported" condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' -curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output libpng-1.6.37.tar.xz -tar -xvf libpng-1.6.37.tar.xz +curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output libpng-1.6.37.tar.gz +tar -xvf libpng-1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng_aflpp_ui/README.md b/fuzzers/libfuzzer_libpng_aflpp_ui/README.md index 1fa497e6df..d96628e950 100644 --- a/fuzzers/libfuzzer_libpng_aflpp_ui/README.md +++ b/fuzzers/libfuzzer_libpng_aflpp_ui/README.md @@ -20,7 +20,7 @@ The compiler wrappers, `libafl_cc` and `libafl_cxx`, will end up in `./target/re Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_libpng_centralized/Makefile.toml b/fuzzers/libfuzzer_libpng_centralized/Makefile.toml index c53b73eacf..076bca411d 100644 --- a/fuzzers/libfuzzer_libpng_centralized/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_centralized/Makefile.toml @@ -26,7 +26,7 @@ condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng_centralized/README.md b/fuzzers/libfuzzer_libpng_centralized/README.md index a11723fa11..fd9ae3bb54 100644 --- a/fuzzers/libfuzzer_libpng_centralized/README.md +++ b/fuzzers/libfuzzer_libpng_centralized/README.md @@ -20,7 +20,7 @@ In addition, it will also build two C and C++ compiler wrappers (bin/libafl_c(li Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_libpng_cmin/Makefile.toml b/fuzzers/libfuzzer_libpng_cmin/Makefile.toml index aaa9c7ff71..a643ac268d 100644 --- a/fuzzers/libfuzzer_libpng_cmin/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_cmin/Makefile.toml @@ -25,8 +25,8 @@ windows_alias = "unsupported" condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' -curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output libpng-1.6.37.tar.xz -tar -xvf libpng-1.6.37.tar.xz +curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output libpng-1.6.37.tar.gz +tar -xvf libpng-1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng_cmin/README.md b/fuzzers/libfuzzer_libpng_cmin/README.md index efc45e70b2..e6d117e2a8 100644 --- a/fuzzers/libfuzzer_libpng_cmin/README.md +++ b/fuzzers/libfuzzer_libpng_cmin/README.md @@ -27,7 +27,7 @@ The compiler wrappers, `libafl_cc` and libafl_cxx`, will end up in `./target/rel Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_libpng_ctx/Makefile.toml b/fuzzers/libfuzzer_libpng_ctx/Makefile.toml index c1990b2807..ff6b63ff82 100644 --- a/fuzzers/libfuzzer_libpng_ctx/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_ctx/Makefile.toml @@ -26,7 +26,7 @@ condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng_ctx/README.md b/fuzzers/libfuzzer_libpng_ctx/README.md index a11723fa11..fd9ae3bb54 100644 --- a/fuzzers/libfuzzer_libpng_ctx/README.md +++ b/fuzzers/libfuzzer_libpng_ctx/README.md @@ -20,7 +20,7 @@ In addition, it will also build two C and C++ compiler wrappers (bin/libafl_c(li Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_libpng_launcher/Makefile.toml b/fuzzers/libfuzzer_libpng_launcher/Makefile.toml index ee85bce8bc..e94284e012 100644 --- a/fuzzers/libfuzzer_libpng_launcher/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_launcher/Makefile.toml @@ -27,7 +27,7 @@ condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng_launcher/README.md b/fuzzers/libfuzzer_libpng_launcher/README.md index a11723fa11..fd9ae3bb54 100644 --- a/fuzzers/libfuzzer_libpng_launcher/README.md +++ b/fuzzers/libfuzzer_libpng_launcher/README.md @@ -20,7 +20,7 @@ In addition, it will also build two C and C++ compiler wrappers (bin/libafl_c(li Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_libpng_norestart/Makefile.toml b/fuzzers/libfuzzer_libpng_norestart/Makefile.toml index 297b0aa805..657e763c3c 100644 --- a/fuzzers/libfuzzer_libpng_norestart/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_norestart/Makefile.toml @@ -26,7 +26,7 @@ condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng_norestart/README.md b/fuzzers/libfuzzer_libpng_norestart/README.md index a11723fa11..fd9ae3bb54 100644 --- a/fuzzers/libfuzzer_libpng_norestart/README.md +++ b/fuzzers/libfuzzer_libpng_norestart/README.md @@ -20,7 +20,7 @@ In addition, it will also build two C and C++ compiler wrappers (bin/libafl_c(li Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_libpng_tcp_manager/Makefile.toml b/fuzzers/libfuzzer_libpng_tcp_manager/Makefile.toml index 4f6995ab18..c964d50182 100644 --- a/fuzzers/libfuzzer_libpng_tcp_manager/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_tcp_manager/Makefile.toml @@ -25,8 +25,8 @@ windows_alias = "unsupported" condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' -curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output libpng-1.6.37.tar.xz -tar -xvf libpng-1.6.37.tar.xz +curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output libpng-1.6.37.tar.gz +tar -xvf libpng-1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng_tcp_manager/README.md b/fuzzers/libfuzzer_libpng_tcp_manager/README.md index 3e3c55da4b..0fc8b1afb8 100644 --- a/fuzzers/libfuzzer_libpng_tcp_manager/README.md +++ b/fuzzers/libfuzzer_libpng_tcp_manager/README.md @@ -27,7 +27,7 @@ The compiler wrappers, `libafl_cc` and `libafl_cxx`, will end up in `./target/re Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_reachability/README.md b/fuzzers/libfuzzer_reachability/README.md index 130949dd1a..7e0d4e2298 100644 --- a/fuzzers/libfuzzer_reachability/README.md +++ b/fuzzers/libfuzzer_reachability/README.md @@ -26,7 +26,7 @@ The compiler wrappers, `libafl_cc` and `libafl_cxx`, will end up in `./target/re Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ``` Run `patch libpng-1.6.37/png.c diff.patch` before compiling the libpng Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/nautilus_sync/Makefile.toml b/fuzzers/nautilus_sync/Makefile.toml index 3cce7f62e1..ec0ca01981 100644 --- a/fuzzers/nautilus_sync/Makefile.toml +++ b/fuzzers/nautilus_sync/Makefile.toml @@ -26,7 +26,7 @@ condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.xz +tar -xvf libpng-1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/qemu_cmin/Makefile.toml b/fuzzers/qemu_cmin/Makefile.toml index 7ee103faed..255cef40a8 100644 --- a/fuzzers/qemu_cmin/Makefile.toml +++ b/fuzzers/qemu_cmin/Makefile.toml @@ -145,11 +145,11 @@ condition = { files_not_exist = [ "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/lib script_runner="@shell" script=''' wget \ - -O "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.xz" \ + -O "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.gz" \ https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz tar \ - -xvf "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.xz" \ + -xvf "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.gz" \ -C ${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/ ''' diff --git a/fuzzers/qemu_coverage/Makefile.toml b/fuzzers/qemu_coverage/Makefile.toml index 0acb260200..28910f793e 100644 --- a/fuzzers/qemu_coverage/Makefile.toml +++ b/fuzzers/qemu_coverage/Makefile.toml @@ -145,11 +145,11 @@ condition = { files_not_exist = [ "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/lib script_runner="@shell" script=''' wget \ - -O "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.xz" \ + -O "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.gz" \ https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz tar \ - -xvf "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.xz" \ + -xvf "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.gz" \ -C ${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/ ''' diff --git a/fuzzers/qemu_launcher/Makefile.toml b/fuzzers/qemu_launcher/Makefile.toml index 77301ab231..253498b5e9 100644 --- a/fuzzers/qemu_launcher/Makefile.toml +++ b/fuzzers/qemu_launcher/Makefile.toml @@ -145,11 +145,11 @@ condition = { files_not_exist = [ "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/lib script_runner="@shell" script=''' wget \ - -O "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.xz" \ + -O "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.gz" \ https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz tar \ - -xvf "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.xz" \ + -xvf "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.gz" \ -C ${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/ ''' diff --git a/libafl_frida/Cargo.toml b/libafl_frida/Cargo.toml index 4f3bdb5fa9..57bb06e05c 100644 --- a/libafl_frida/Cargo.toml +++ b/libafl_frida/Cargo.toml @@ -32,7 +32,7 @@ cc = { version = "1.0", features = ["parallel"] } yaxpeax-arm = "0.2.4" [target.'cfg(target_arch = "x86_64")'.dependencies] -yaxpeax-x86 = { git = "https://github.com/tokatoka/yaxpeax-x86/" } # replace this with origin later +yaxpeax-x86 = { git = "https://github.com/iximeow/yaxpeax-x86/", rev = "85668b2" } # replace this with origin later [dependencies] libafl = { path = "../libafl", default-features = false, version = "0.11.1", features = [ diff --git a/libafl_frida/src/asan/asan_rt.rs b/libafl_frida/src/asan/asan_rt.rs index 36bac24a55..98c514f69c 100644 --- a/libafl_frida/src/asan/asan_rt.rs +++ b/libafl_frida/src/asan/asan_rt.rs @@ -41,7 +41,7 @@ use yaxpeax_arm::armv8::a64::{ARMv8, InstDecoder, Opcode, Operand, ShiftStyle, S #[cfg(target_arch = "x86_64")] use yaxpeax_x86::amd64::{InstDecoder, Instruction, Opcode}; -#[cfg(any(target_arch = "x86_64"))] +#[cfg(target_arch = "x86_64")] use crate::utils::frida_to_cs; #[cfg(target_arch = "aarch64")] use crate::utils::{instruction_width, writer_register}; @@ -2138,8 +2138,6 @@ impl AsanRuntime { u32, //load/store size Option<(ShiftStyle, u8)>, //(shift type, shift size) )> { - // We need to re-decode frida-internal capstone values to upstream capstone - let instr = disas_count(&decoder, instr.bytes(), 1)[0]; // We have to ignore these instructions. Simulating them with their side effects is // complex, to say the least. @@ -2235,7 +2233,6 @@ impl AsanRuntime { _address: u64, instr: &Insn, ) -> Option<(u8, X86Register, X86Register, u8, i32)> { - // We need to re-decode frida-internal capstone values to upstream capstone let cs_instr = frida_to_cs(decoder, instr); let mut operands = vec![]; for operand_idx in 0..cs_instr.operand_count() { diff --git a/libafl_frida/src/utils.rs b/libafl_frida/src/utils.rs index ec036d00bc..9126492768 100644 --- a/libafl_frida/src/utils.rs +++ b/libafl_frida/src/utils.rs @@ -2,7 +2,7 @@ use frida_gum::instruction_writer::Aarch64Register; #[cfg(target_arch = "x86_64")] use frida_gum::instruction_writer::X86Register; -#[cfg(any(target_arch = "x86_64"))] +#[cfg(target_arch = "x86_64")] use frida_gum_sys; #[cfg(target_arch = "aarch64")] use num_traits::cast::FromPrimitive; @@ -162,7 +162,6 @@ const X86_64_REGS: [(RegSpec, X86Register); 34] = [ /// The writer registers /// frida registers: -/// capstone registers: #[cfg(all(target_arch = "x86_64", unix))] #[must_use] #[inline] @@ -177,9 +176,8 @@ pub fn writer_register(reg: RegSpec) -> X86Register { X86Register::None } -/// Translates a frida instruction to a capstone instruction. -/// Returns a [`capstone::Instructions`] with a single [`capstone::Insn`] inside. -#[cfg(any(target_arch = "x86_64"))] +/// Translates a frida instruction to a disassembled instruction. +#[cfg(target_arch = "x86_64")] pub(crate) fn frida_to_cs(decoder: InstDecoder, frida_insn: &frida_gum_sys::Insn) -> Instruction { decoder.decode_slice(frida_insn.bytes()).unwrap() } From 0a56d4e1a3b55b43538d28eea89b36aaf50da408 Mon Sep 17 00:00:00 2001 From: toka Date: Sat, 16 Dec 2023 16:34:23 +0900 Subject: [PATCH 2/3] more --- fuzzers/frida_executable_libpng/Makefile.toml | 2 +- fuzzers/frida_libpng/Makefile.toml | 2 +- fuzzers/fuzzbench_fork_qemu/Makefile.toml | 2 +- fuzzers/fuzzbench_qemu/Makefile.toml | 2 +- fuzzers/libfuzzer_libpng/Makefile.toml | 4 ++-- fuzzers/libfuzzer_libpng/README.md | 2 +- fuzzers/libfuzzer_libpng_accounting/Makefile.toml | 2 +- fuzzers/libfuzzer_libpng_accounting/README.md | 2 +- fuzzers/libfuzzer_libpng_aflpp_ui/Makefile.toml | 4 ++-- fuzzers/libfuzzer_libpng_aflpp_ui/README.md | 2 +- fuzzers/libfuzzer_libpng_centralized/Makefile.toml | 2 +- fuzzers/libfuzzer_libpng_centralized/README.md | 2 +- fuzzers/libfuzzer_libpng_cmin/Makefile.toml | 4 ++-- fuzzers/libfuzzer_libpng_cmin/README.md | 2 +- fuzzers/libfuzzer_libpng_ctx/Makefile.toml | 2 +- fuzzers/libfuzzer_libpng_ctx/README.md | 2 +- fuzzers/libfuzzer_libpng_launcher/Makefile.toml | 2 +- fuzzers/libfuzzer_libpng_launcher/README.md | 2 +- fuzzers/libfuzzer_libpng_norestart/Makefile.toml | 2 +- fuzzers/libfuzzer_libpng_norestart/README.md | 2 +- fuzzers/libfuzzer_libpng_tcp_manager/Makefile.toml | 4 ++-- fuzzers/libfuzzer_libpng_tcp_manager/README.md | 2 +- fuzzers/libfuzzer_reachability/README.md | 2 +- fuzzers/nautilus_sync/Makefile.toml | 2 +- fuzzers/qemu_cmin/Makefile.toml | 4 ++-- fuzzers/qemu_coverage/Makefile.toml | 4 ++-- fuzzers/qemu_launcher/Makefile.toml | 4 ++-- 27 files changed, 34 insertions(+), 34 deletions(-) diff --git a/fuzzers/frida_executable_libpng/Makefile.toml b/fuzzers/frida_executable_libpng/Makefile.toml index ae3c57fe99..bed1b4bdd1 100644 --- a/fuzzers/frida_executable_libpng/Makefile.toml +++ b/fuzzers/frida_executable_libpng/Makefile.toml @@ -21,7 +21,7 @@ condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ''' # Library diff --git a/fuzzers/frida_libpng/Makefile.toml b/fuzzers/frida_libpng/Makefile.toml index 9783c200cb..d44ffa1791 100644 --- a/fuzzers/frida_libpng/Makefile.toml +++ b/fuzzers/frida_libpng/Makefile.toml @@ -22,7 +22,7 @@ condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ''' # Library diff --git a/fuzzers/fuzzbench_fork_qemu/Makefile.toml b/fuzzers/fuzzbench_fork_qemu/Makefile.toml index 05baac5e29..00ac7f259e 100644 --- a/fuzzers/fuzzbench_fork_qemu/Makefile.toml +++ b/fuzzers/fuzzbench_fork_qemu/Makefile.toml @@ -22,7 +22,7 @@ condition = { files_not_exist = [ "./libpng-1.6.37" ] } script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ''' # fuzzer diff --git a/fuzzers/fuzzbench_qemu/Makefile.toml b/fuzzers/fuzzbench_qemu/Makefile.toml index 700e0b1de6..df0edf93ba 100644 --- a/fuzzers/fuzzbench_qemu/Makefile.toml +++ b/fuzzers/fuzzbench_qemu/Makefile.toml @@ -22,7 +22,7 @@ condition = { files_not_exist = [ "./libpng-1.6.37" ] } script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ''' # fuzzer diff --git a/fuzzers/libfuzzer_libpng/Makefile.toml b/fuzzers/libfuzzer_libpng/Makefile.toml index c964d50182..5b55fd4e85 100644 --- a/fuzzers/libfuzzer_libpng/Makefile.toml +++ b/fuzzers/libfuzzer_libpng/Makefile.toml @@ -25,8 +25,8 @@ windows_alias = "unsupported" condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' -curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output libpng-1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output v1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng/README.md b/fuzzers/libfuzzer_libpng/README.md index 0fc8b1afb8..7d014ceb1f 100644 --- a/fuzzers/libfuzzer_libpng/README.md +++ b/fuzzers/libfuzzer_libpng/README.md @@ -27,7 +27,7 @@ The compiler wrappers, `libafl_cc` and `libafl_cxx`, will end up in `./target/re Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_libpng_accounting/Makefile.toml b/fuzzers/libfuzzer_libpng_accounting/Makefile.toml index 9ec9c6bcad..6ccff0684c 100644 --- a/fuzzers/libfuzzer_libpng_accounting/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_accounting/Makefile.toml @@ -26,7 +26,7 @@ condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng_accounting/README.md b/fuzzers/libfuzzer_libpng_accounting/README.md index fd9ae3bb54..b9ffdecb35 100644 --- a/fuzzers/libfuzzer_libpng_accounting/README.md +++ b/fuzzers/libfuzzer_libpng_accounting/README.md @@ -20,7 +20,7 @@ In addition, it will also build two C and C++ compiler wrappers (bin/libafl_c(li Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_libpng_aflpp_ui/Makefile.toml b/fuzzers/libfuzzer_libpng_aflpp_ui/Makefile.toml index 61b73f6c83..0b55bb7510 100644 --- a/fuzzers/libfuzzer_libpng_aflpp_ui/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_aflpp_ui/Makefile.toml @@ -25,8 +25,8 @@ windows_alias = "unsupported" condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' -curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output libpng-1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output v1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng_aflpp_ui/README.md b/fuzzers/libfuzzer_libpng_aflpp_ui/README.md index d96628e950..f87639b920 100644 --- a/fuzzers/libfuzzer_libpng_aflpp_ui/README.md +++ b/fuzzers/libfuzzer_libpng_aflpp_ui/README.md @@ -20,7 +20,7 @@ The compiler wrappers, `libafl_cc` and `libafl_cxx`, will end up in `./target/re Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_libpng_centralized/Makefile.toml b/fuzzers/libfuzzer_libpng_centralized/Makefile.toml index 076bca411d..118169b2c0 100644 --- a/fuzzers/libfuzzer_libpng_centralized/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_centralized/Makefile.toml @@ -26,7 +26,7 @@ condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng_centralized/README.md b/fuzzers/libfuzzer_libpng_centralized/README.md index fd9ae3bb54..b9ffdecb35 100644 --- a/fuzzers/libfuzzer_libpng_centralized/README.md +++ b/fuzzers/libfuzzer_libpng_centralized/README.md @@ -20,7 +20,7 @@ In addition, it will also build two C and C++ compiler wrappers (bin/libafl_c(li Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_libpng_cmin/Makefile.toml b/fuzzers/libfuzzer_libpng_cmin/Makefile.toml index a643ac268d..b8d42313be 100644 --- a/fuzzers/libfuzzer_libpng_cmin/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_cmin/Makefile.toml @@ -25,8 +25,8 @@ windows_alias = "unsupported" condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' -curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output libpng-1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output v1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng_cmin/README.md b/fuzzers/libfuzzer_libpng_cmin/README.md index e6d117e2a8..ccf6ed3ab4 100644 --- a/fuzzers/libfuzzer_libpng_cmin/README.md +++ b/fuzzers/libfuzzer_libpng_cmin/README.md @@ -27,7 +27,7 @@ The compiler wrappers, `libafl_cc` and libafl_cxx`, will end up in `./target/rel Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_libpng_ctx/Makefile.toml b/fuzzers/libfuzzer_libpng_ctx/Makefile.toml index ff6b63ff82..e0a8052376 100644 --- a/fuzzers/libfuzzer_libpng_ctx/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_ctx/Makefile.toml @@ -26,7 +26,7 @@ condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng_ctx/README.md b/fuzzers/libfuzzer_libpng_ctx/README.md index fd9ae3bb54..b9ffdecb35 100644 --- a/fuzzers/libfuzzer_libpng_ctx/README.md +++ b/fuzzers/libfuzzer_libpng_ctx/README.md @@ -20,7 +20,7 @@ In addition, it will also build two C and C++ compiler wrappers (bin/libafl_c(li Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_libpng_launcher/Makefile.toml b/fuzzers/libfuzzer_libpng_launcher/Makefile.toml index e94284e012..6fe51625ce 100644 --- a/fuzzers/libfuzzer_libpng_launcher/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_launcher/Makefile.toml @@ -27,7 +27,7 @@ condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng_launcher/README.md b/fuzzers/libfuzzer_libpng_launcher/README.md index fd9ae3bb54..b9ffdecb35 100644 --- a/fuzzers/libfuzzer_libpng_launcher/README.md +++ b/fuzzers/libfuzzer_libpng_launcher/README.md @@ -20,7 +20,7 @@ In addition, it will also build two C and C++ compiler wrappers (bin/libafl_c(li Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_libpng_norestart/Makefile.toml b/fuzzers/libfuzzer_libpng_norestart/Makefile.toml index 657e763c3c..5be3e36181 100644 --- a/fuzzers/libfuzzer_libpng_norestart/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_norestart/Makefile.toml @@ -26,7 +26,7 @@ condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng_norestart/README.md b/fuzzers/libfuzzer_libpng_norestart/README.md index fd9ae3bb54..b9ffdecb35 100644 --- a/fuzzers/libfuzzer_libpng_norestart/README.md +++ b/fuzzers/libfuzzer_libpng_norestart/README.md @@ -20,7 +20,7 @@ In addition, it will also build two C and C++ compiler wrappers (bin/libafl_c(li Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_libpng_tcp_manager/Makefile.toml b/fuzzers/libfuzzer_libpng_tcp_manager/Makefile.toml index c964d50182..5b55fd4e85 100644 --- a/fuzzers/libfuzzer_libpng_tcp_manager/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_tcp_manager/Makefile.toml @@ -25,8 +25,8 @@ windows_alias = "unsupported" condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' -curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output libpng-1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output v1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/libfuzzer_libpng_tcp_manager/README.md b/fuzzers/libfuzzer_libpng_tcp_manager/README.md index 0fc8b1afb8..7d014ceb1f 100644 --- a/fuzzers/libfuzzer_libpng_tcp_manager/README.md +++ b/fuzzers/libfuzzer_libpng_tcp_manager/README.md @@ -27,7 +27,7 @@ The compiler wrappers, `libafl_cc` and `libafl_cxx`, will end up in `./target/re Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ``` Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/libfuzzer_reachability/README.md b/fuzzers/libfuzzer_reachability/README.md index 7e0d4e2298..77510a1b80 100644 --- a/fuzzers/libfuzzer_reachability/README.md +++ b/fuzzers/libfuzzer_reachability/README.md @@ -26,7 +26,7 @@ The compiler wrappers, `libafl_cc` and `libafl_cxx`, will end up in `./target/re Then download libpng, and unpack the archive: ```bash wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ``` Run `patch libpng-1.6.37/png.c diff.patch` before compiling the libpng Now compile libpng, using the libafl_cc compiler wrapper: diff --git a/fuzzers/nautilus_sync/Makefile.toml b/fuzzers/nautilus_sync/Makefile.toml index ec0ca01981..5f21f01fa7 100644 --- a/fuzzers/nautilus_sync/Makefile.toml +++ b/fuzzers/nautilus_sync/Makefile.toml @@ -26,7 +26,7 @@ condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz -tar -xvf libpng-1.6.37.tar.gz +tar -xvf v1.6.37.tar.gz ''' # Compilers diff --git a/fuzzers/qemu_cmin/Makefile.toml b/fuzzers/qemu_cmin/Makefile.toml index 255cef40a8..a28fafea8a 100644 --- a/fuzzers/qemu_cmin/Makefile.toml +++ b/fuzzers/qemu_cmin/Makefile.toml @@ -145,11 +145,11 @@ condition = { files_not_exist = [ "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/lib script_runner="@shell" script=''' wget \ - -O "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.gz" \ + -O "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/v1.6.37.tar.gz" \ https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz tar \ - -xvf "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.gz" \ + -xvf "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/v1.6.37.tar.gz" \ -C ${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/ ''' diff --git a/fuzzers/qemu_coverage/Makefile.toml b/fuzzers/qemu_coverage/Makefile.toml index 28910f793e..d8972bc283 100644 --- a/fuzzers/qemu_coverage/Makefile.toml +++ b/fuzzers/qemu_coverage/Makefile.toml @@ -145,11 +145,11 @@ condition = { files_not_exist = [ "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/lib script_runner="@shell" script=''' wget \ - -O "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.gz" \ + -O "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/v1.6.37.tar.gz" \ https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz tar \ - -xvf "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.gz" \ + -xvf "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/v1.6.37.tar.gz" \ -C ${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/ ''' diff --git a/fuzzers/qemu_launcher/Makefile.toml b/fuzzers/qemu_launcher/Makefile.toml index 253498b5e9..79dfe93c44 100644 --- a/fuzzers/qemu_launcher/Makefile.toml +++ b/fuzzers/qemu_launcher/Makefile.toml @@ -145,11 +145,11 @@ condition = { files_not_exist = [ "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/lib script_runner="@shell" script=''' wget \ - -O "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.gz" \ + -O "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/v1.6.37.tar.gz" \ https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz tar \ - -xvf "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/libpng-1.6.37.tar.gz" \ + -xvf "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/v1.6.37.tar.gz" \ -C ${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/deps/ ''' From be01953dd334ea05c6e4f0817e21959366e563df Mon Sep 17 00:00:00 2001 From: toka Date: Sat, 16 Dec 2023 16:44:55 +0900 Subject: [PATCH 3/3] more --- fuzzers/libfuzzer_libpng/Makefile.toml | 2 +- fuzzers/libfuzzer_libpng_aflpp_ui/Makefile.toml | 2 +- fuzzers/libfuzzer_libpng_cmin/Makefile.toml | 2 +- fuzzers/libfuzzer_libpng_tcp_manager/Makefile.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fuzzers/libfuzzer_libpng/Makefile.toml b/fuzzers/libfuzzer_libpng/Makefile.toml index 5b55fd4e85..fa588ed087 100644 --- a/fuzzers/libfuzzer_libpng/Makefile.toml +++ b/fuzzers/libfuzzer_libpng/Makefile.toml @@ -25,7 +25,7 @@ windows_alias = "unsupported" condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' -curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output v1.6.37.tar.gz +wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz tar -xvf v1.6.37.tar.gz ''' diff --git a/fuzzers/libfuzzer_libpng_aflpp_ui/Makefile.toml b/fuzzers/libfuzzer_libpng_aflpp_ui/Makefile.toml index 0b55bb7510..2606491ecb 100644 --- a/fuzzers/libfuzzer_libpng_aflpp_ui/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_aflpp_ui/Makefile.toml @@ -25,7 +25,7 @@ windows_alias = "unsupported" condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' -curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output v1.6.37.tar.gz +wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz tar -xvf v1.6.37.tar.gz ''' diff --git a/fuzzers/libfuzzer_libpng_cmin/Makefile.toml b/fuzzers/libfuzzer_libpng_cmin/Makefile.toml index b8d42313be..61902de3bd 100644 --- a/fuzzers/libfuzzer_libpng_cmin/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_cmin/Makefile.toml @@ -25,7 +25,7 @@ windows_alias = "unsupported" condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' -curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output v1.6.37.tar.gz +wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz tar -xvf v1.6.37.tar.gz ''' diff --git a/fuzzers/libfuzzer_libpng_tcp_manager/Makefile.toml b/fuzzers/libfuzzer_libpng_tcp_manager/Makefile.toml index 5b55fd4e85..fa588ed087 100644 --- a/fuzzers/libfuzzer_libpng_tcp_manager/Makefile.toml +++ b/fuzzers/libfuzzer_libpng_tcp_manager/Makefile.toml @@ -25,7 +25,7 @@ windows_alias = "unsupported" condition = { files_not_exist = ["./libpng-1.6.37"]} script_runner="@shell" script=''' -curl https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz --output v1.6.37.tar.gz +wget https://github.com/glennrp/libpng/archive/refs/tags/v1.6.37.tar.gz tar -xvf v1.6.37.tar.gz '''