Update some deps, clippy (#1422)

* More less default

* More clippy

* updated rangemap

* Clean up depencdencies

* Undo accidental remove

* Fix

* trying to fix qemu build

* hexagon be gone
This commit is contained in:
Dominik Maier 2023-08-17 17:15:03 +02:00 committed by GitHub
parent b5774b2275
commit b0179b4498
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
41 changed files with 56 additions and 54 deletions

View File

@ -18,7 +18,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
which = { version = "4.0.2" }
which = { version = "4.4" }
[dependencies]
clap = { version = "4.0", features = ["derive"] }

View File

@ -19,7 +19,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0.42", features = ["parallel"] }
which = "4.1"
which = "4.4"
xz2 = "0.1.6"
flate2 = "1.0.22"
tar = "0.4.37"
@ -35,7 +35,7 @@ libafl_targets = { path = "../../libafl_targets", features = ["sancov_cmplog"] }
libc = "0.2"
libloading = "0.7"
num-traits = "0.2"
rangemap = "1"
rangemap = "1.3"
clap = { version = "4.0", features = ["derive"] }
serde = "1.0"
mimalloc = { version = "*", default-features = false }

View File

@ -17,7 +17,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0.42", features = ["parallel"] }
num_cpus = "1.0"
which = "4.1"
which = "4.4"
xz2 = "0.1.6"
flate2 = "1.0.22"
tar = "0.4.37"

View File

@ -16,7 +16,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0.42", features = ["parallel"] }
which = "4.1"
which = "4.4"
xz2 = "0.1.6"
flate2 = "1.0.22"
tar = "0.4.37"

View File

@ -17,7 +17,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
which = { version = "4.0.2" }
which = "4.4"
[dependencies]
libafl = { path = "../../libafl/" }

View File

@ -12,7 +12,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
which = { version = "4.0.2" }
which = "4.4"
[dependencies]
libafl = { path = "../../libafl/" }

View File

@ -12,7 +12,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
which = { version = "4.0.2" }
which = "4.4"
[dependencies]
libafl = { path = "../../libafl/" }

View File

@ -17,7 +17,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
which = { version = "4.0.2" }
which = "4.4"
[dependencies]
libafl = { path = "../../libafl/" }

View File

@ -16,7 +16,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
which = { version = "4.0.2" }
which = "4.4"
[dependencies]
libafl = { path = "../../libafl/" }

View File

@ -18,7 +18,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
which = { version = "4.0.2" }
which = "4.4"
[dependencies]
libafl = { path = "../../libafl/", features = ["default"] }

View File

@ -16,7 +16,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
which = { version = "4.0.2" }
which = "4.4"
[dependencies]
libafl = { path = "../../libafl/", features = ["std", "derive", "llmp_compression", "introspection"] }

View File

@ -16,7 +16,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
which = { version = "4.0.2" }
which = "4.4"
[dependencies]
libafl = { path = "../../libafl/", features = ["std", "derive", "rand_trait", "fork", "prelude", "gzip", "regex"] }

View File

@ -18,7 +18,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
which = { version = "4.0.2" }
which = "4.4"
[dependencies]
libafl = { path = "../../libafl/", features = ["default", "cmin"] }

View File

@ -16,7 +16,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
which = { version = "4.0.2" }
which = "4.4"
[dependencies]
libafl = { path = "../../libafl/", features = ["std", "derive", "llmp_compression", "introspection"] }

View File

@ -16,7 +16,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
which = { version = "4.0.2" }
which = "4.4"
[dependencies]
libafl = { path = "../../libafl/", features = ["std", "derive", "llmp_compression", "introspection"] }

View File

@ -16,7 +16,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
which = { version = "4.0.2" }
which = "4.4"
[dependencies]
libafl = { path = "../../libafl/" }

View File

@ -18,7 +18,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
which = { version = "4.0.2" }
which = "4.4"
[dependencies]
libafl = { path = "../../libafl/", features = ["default", "tcp_manager"] }

View File

@ -16,7 +16,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
which = { version = "4.0.2" }
which = "4.4"
[dependencies]
libafl = { path = "../../libafl/" }

View File

@ -25,5 +25,5 @@ mimalloc = { version = "*", default-features = false }
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
cmake = "0.1"
which = "4.1"
which = "4.4"
symcc_libafl = {path = "../../../libafl_concolic/symcc_libafl"}

View File

@ -216,7 +216,7 @@ fn fuzz(
// Create a concolic trace
ConcolicTracingStage::new(
TracingStage::new(
MyCommandConfigurator::default().into_executor(tuple_list!(concolic_observer))
MyCommandConfigurator.into_executor(tuple_list!(concolic_observer))
),
concolic_observer_name,
),

View File

@ -29,4 +29,4 @@ clap = { version = "4.3.0", features = ["derive", "string"]}
libafl = { path = "../../libafl/" }
libafl_bolts = { path = "../../libafl_bolts/" }
libafl_qemu = { path = "../../libafl_qemu/", features = ["usermode"] }
rangemap = { version = "1.0.3" }
rangemap = { version = "1.3" }

View File

@ -29,4 +29,4 @@ clap = { version = "4.3.0", features = ["derive", "string"]}
libafl = { path = "../../libafl/" }
libafl_bolts = { path = "../../libafl_bolts/" }
libafl_qemu = { path = "../../libafl_qemu/", features = ["usermode"] }
rangemap = { version = "1.0.3" }
rangemap = { version = "1.3" }

View File

@ -16,7 +16,7 @@ debug = true
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
which = { version = "4.0.2" }
which = "4.4"
[dependencies]
libafl = { path = "../../libafl/", features = ["default", "rand_trait"] }

View File

@ -80,7 +80,7 @@ typed-builder = { version = "0.15.2", optional = true } # Implement the builder
serde_json = { version = "1.0", optional = true, default-features = false, features = ["alloc"] }
nix = { version = "0.26", optional = true }
regex = { version = "1", optional = true }
uuid = { version = "1.1.2", optional = true, features = ["serde", "v4"] }
uuid = { version = "1.4", optional = true, features = ["serde", "v4"] }
libm = "0.2.2"
tui = { version = "0.19", default-features = false, features = ['crossterm'], optional = true } # Commandline rendering, for TUI Monitor
crossterm = { version = "0.25", optional = true }
@ -89,7 +89,7 @@ prometheus-client = { version= "0.19", optional = true} # For the prometheus mon
tide = { version = "0.16.0", optional = true }
async-std = { version = "1.12.0", features = ["attributes"], optional = true }
futures = { version = "0.3.24", optional = true }
log = "0.4.18"
log = "0.4.20"
tokio = { version = "1.28.1", optional = true, features = ["sync", "net", "rt", "io-util", "macros"] } # only used for TCP Event Manager right now
wait-timeout = { version = "0.2", optional = true } # used by CommandExecutor to wait for child process

View File

@ -13,7 +13,7 @@ categories = ["development-tools::testing", "emulators", "embedded", "os", "no-s
[features]
default = ["std", "derive", "llmp_compression", "llmp_small_maps", "rand_trait", "prelude", "gzip", "serdeany_autoreg", "alloc"]
std = ["serde_json", "serde_json/std", "hostname", "nix", "serde/std", "once_cell", "uuid", "byteorder", "backtrace", "uds", "serial_test", "alloc"] # print, env, ... support
std = ["serde_json", "serde_json/std", "hostname", "nix", "serde/std", "uuid", "byteorder", "backtrace", "uds", "serial_test", "alloc"] # print, env, ... support
alloc = ["serde/alloc", "hashbrown", "postcard", "erased-serde/alloc", "ahash"] # Enables all features that allocate in no_std
derive = ["libafl_derive"] # provide derive(SerdeAny) macro.
rand_trait = ["rand_core"] # If set, libafl's rand implementations will implement `rand::Rng`
@ -51,7 +51,7 @@ xxhash-rust = { version = "0.8.5", features = ["xxh3"] } # xxh3 hashing for rust
serde = { version = "1.0", default-features = false, features = ["derive"] } # serialization lib
erased-serde = { version = "0.3.21", default-features = false, optional = true } # erased serde
postcard = { version = "1.0", features = ["alloc"], optional = true } # no_std compatible serde serialization format
num_enum = { version = "0.5.7", default-features = false }
num_enum = { version = "0.6", default-features = false }
ahash = { version = "0.8", default-features=false, optional = true } # The hash function already used in hashbrown
backtrace = {version = "0.3", optional = true} # Used to get the stacktrace in StacktraceObserver
@ -61,11 +61,10 @@ miniz_oxide = { version = "0.7.1", optional = true}
hostname = { version = "^0.3", optional = true } # Is there really no gethostname in the stdlib?
rand_core = { version = "0.6", optional = true }
nix = { version = "0.26", optional = true }
uuid = { version = "1.1.2", optional = true, features = ["serde", "v4"] }
uuid = { version = "1.4", optional = true, features = ["serde", "v4"] }
byteorder = { version = "1.4", optional = true }
once_cell = { version = "1.13", optional = true }
clap = {version = "4.0", features = ["derive", "wrap_help"], optional = true} # CLI parsing, for libafl_bolts::cli / the `cli` feature
log = "0.4.18"
log = "0.4.20"
pyo3 = { version = "0.18.3", optional = true, features = ["serde", "macros"] }

View File

@ -7,12 +7,12 @@ use std::{
fs::File,
hash::{Hash, Hasher},
io,
sync::OnceLock,
};
use once_cell::sync::Lazy;
use uuid::Uuid;
static BUILD_ID: Lazy<Uuid> = Lazy::new(calculate);
static BUILD_ID: OnceLock<Uuid> = OnceLock::new();
/// Returns a [Uuid] uniquely representing the build of the current binary.
///
@ -48,7 +48,7 @@ static BUILD_ID: Lazy<Uuid> = Lazy::new(calculate);
#[inline]
#[must_use]
pub fn get() -> Uuid {
*BUILD_ID
*BUILD_ID.get_or_init(calculate)
}
fn from_exe<H: Hasher>(mut hasher: H) -> Result<H, ()> {

View File

@ -790,7 +790,7 @@ fn write_minibsod<W: Write>(writer: &mut BufWriter<W>) -> Result<(), std::io::Er
/// Generates a mini-BSOD given a signal and context.
#[cfg(unix)]
#[allow(clippy::non_ascii_literal)]
#[allow(clippy::non_ascii_literal, clippy::too_many_lines)]
pub fn generate_minibsod<W: Write>(
writer: &mut BufWriter<W>,
signal: Signal,

View File

@ -15,11 +15,11 @@ categories = ["development-tools::testing", "emulators", "embedded", "os", "no-s
[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
which = "4.2.5"
which = "4.4"
[target.'cfg(target_vendor = "apple")'.build-dependencies]
glob = "0.3"
[dependencies]
serde = { version = "1.0", default-features = false, features = ["alloc", "derive"] } # serialization lib
log = "0.4.17"
log = "0.4.20"

View File

@ -19,6 +19,6 @@ build = ["which", "cmake"] # common functionality to build symcc
clone = ["which"] # common functionality to check out the symcc repo using git
[dependencies]
which = { version = "4.2", optional = true }
which = { version = "4.4", optional = true }
cmake = { version = "0.1", optional = true }
log = "0.4.17"
log = "0.4.20"

View File

@ -30,5 +30,5 @@ cmake = "0.1"
bindgen = "0.63"
regex = "1"
lazy_static = "1.4"
which = "4.2"
which = "4.4"
symcc_libafl = { path = "../symcc_libafl", version = "0.10.1" }

View File

@ -27,7 +27,7 @@ libafl_targets = { path = "../libafl_targets", version = "0.10.1", features = ["
nix = "0.26"
libc = "0.2"
hashbrown = "0.14"
rangemap = "1.0"
rangemap = "1.3"
frida-gum-sys = { version = "0.4.1", features = [ "auto-download", "event-sink", "invocation-listener"] }
frida-gum = { version = "0.8.1", features = [ "auto-download", "event-sink", "invocation-listener"] }
dynasmrt = "2"
@ -39,7 +39,7 @@ backtrace = { version = "0.3", default-features = false, features = ["std", "ser
num-traits = "0.2"
ahash = "0.8"
paste = "1.0"
log = "0.4.17"
log = "0.4.20"
[dev-dependencies]
serial_test = "1"

View File

@ -57,8 +57,8 @@ meminterval = "0.3"
thread_local = "1.1.4"
capstone = "0.11.0"
pyo3 = { version = "0.18.3", optional = true }
rangemap = "1.0"
log = "0.4.17"
rangemap = "1.3"
log = "0.4.20"
[build-dependencies]
pyo3-build-config = { version = "0.15", optional = true }

View File

@ -24,7 +24,7 @@ clippy = [] # special feature for clippy, don't use in normal projects§
[dependencies]
bindgen = "0.66"
which = "4.2"
which = "4.4"
json = "0.12"
shell-words = "1.1"
pkg-config = "0.3.26"

View File

@ -90,7 +90,7 @@ impl crate::ArchExtras for crate::CPU {
&self,
conv: CallingConvention,
idx: i32,
val: T,
_val: T,
) -> Result<(), String>
where
T: Into<GuestReg>,

View File

@ -37,7 +37,7 @@ libafl_qemu = { path = "../libafl_qemu", version = "0.10.1" }
typed-builder = "0.15.2" # Implement the builder pattern at compiletime
pyo3 = { version = "0.18.3", optional = true }
log = "0.4.17"
log = "0.4.20"
[lib]
name = "libafl_sugar"

View File

@ -35,7 +35,9 @@ use libafl_bolts::{
AsSlice,
};
pub use libafl_qemu::emu::Emulator;
use libafl_qemu::{edges, QemuCmpLogHelper, QemuEdgeCoverageHelper, QemuExecutor, QemuHooks};
#[cfg(not(any(feature = "mips", feature = "hexagon")))]
use libafl_qemu::QemuCmpLogHelper;
use libafl_qemu::{edges, QemuEdgeCoverageHelper, QemuExecutor, QemuHooks};
use libafl_targets::{edges_map_mut_slice, CmpLogObserver};
use typed_builder::TypedBuilder;
@ -215,6 +217,7 @@ where
emulator,
tuple_list!(
QemuEdgeCoverageHelper::default(),
#[cfg(not(any(cpu_target = "mips", cpu_target = "hexagon")))]
QemuCmpLogHelper::default(),
),
);

View File

@ -34,9 +34,9 @@ cc = { version = "1.0", features = ["parallel"] }
[dependencies]
libafl = { path = "../libafl", version = "0.10.1", default-features = false, features = [] }
libafl_bolts = { path = "../libafl_bolts", version = "0.10.1", default-features = false, features = [] }
log = "0.4.17"
log = "0.4.20"
rangemap = "1.0"
rangemap = "1.3"
serde = { version = "1.0", default-features = false, features = ["alloc"] } # serialization lib
intervaltree = { version = "0.2.7", default-features = false, features = ["serde"], optional = true }
ahash = { version = "0.8.3", default-features = false, optional = true }

View File

@ -22,7 +22,7 @@ libafl_bolts = { path = "../libafl_bolts", version = "0.10.1", features = [
] }
tinyinst = { git = "https://github.com/AFLplusplus/tinyinst-rs" }
# tinyinst-rs = { path = "../../tinyinst-rs" }
log = "0.4.17"
log = "0.4.20"
[build-dependencies]
cmake = "0.1"

View File

@ -14,7 +14,7 @@ categories = ["development-tools::testing", "emulators", "embedded", "os", "no-s
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
log = "0.4.17"
log = "0.4.20"
[lib]
name = "deexit"

View File

@ -21,4 +21,4 @@ postcard = "1.0"
lazy_static = "1.4.0"
libafl = { path = "../../../libafl" }
clap = { version = "4.0", features = ["derive"] }
log = "0.4.17"
log = "0.4.20"

View File

@ -9,7 +9,7 @@ vergen = { version = "8.1.1", features = ["build", "cargo", "git", "gitcl", "rus
[dependencies]
anyhow = { version = "1.0.71", default-features = false }
clap = { version = "4.2.0", default-features = false, features = ["derive", "string", "std", "help", "derive", "error-context", "usage"] }
log = { version = "0.4.19", default-features = false }
log = { version = "0.4.20", default-features = false }
nix = { version = "0.26.2", default-features = false, features = ["process", "personality"] }
readonly = { version = "0.2.8", default-features = false }
simplelog = { version = "0.12.1", default-features = false }