From 04fdf73046eebe46f5da164955c62f2eecfd147c Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 4 May 2020 08:54:08 +0200 Subject: [PATCH] Use specific lengths for big arrays --- Cargo.toml | 6 +++--- src/crypto.rs | 2 +- src/dnscrypt_certs.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c2df533..fb9558a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ anyhow = "1.0.28" byteorder = "1.3.4" clap = { version = "2.33.0", default-features = false, features = ["wrap_help", "nightly"] } clockpro-cache = "0.1.8" -coarsetime = "0.1.12" +coarsetime = "0.1.13" daemonize-simple = "0.1.4" derivative = "2.1.1" dnsstamps = "0.1.4" @@ -27,7 +27,7 @@ ipext = "0.1.0" jemallocator = "0.3.2" libsodium-sys-stable= "1.19.5" log = { version = "0.4.8", features = ["std", "release_max_level_debug"] } -net2 = "0.2.33" +net2 = "0.2.34" parking_lot = "0.10.2" privdrop = "0.3.4" rand = "0.7.3" @@ -36,7 +36,7 @@ serde = "1.0.106" serde_derive = "1.0.106" serde-big-array = "0.3.0" siphasher = "0.3.3" -tokio = { version = "0.2.18", features = ["fs", "rt-threaded", "time", "tcp", "udp", "stream", "parking_lot"] } +tokio = { version = "0.2.20", features = ["fs", "rt-threaded", "time", "tcp", "udp", "stream", "parking_lot"] } toml = "0.5.6" [dependencies.prometheus] diff --git a/src/crypto.rs b/src/crypto.rs index 2a347cd..cbaad55 100644 --- a/src/crypto.rs +++ b/src/crypto.rs @@ -23,7 +23,7 @@ impl Signature { } } -big_array! { BigArray; } +big_array! { BigArray; crypto_sign_SECRETKEYBYTES as usize } #[derive(Serialize, Deserialize, Derivative, Clone)] #[derivative(Default)] diff --git a/src/dnscrypt_certs.rs b/src/dnscrypt_certs.rs index a98f8b0..0b0aead 100644 --- a/src/dnscrypt_certs.rs +++ b/src/dnscrypt_certs.rs @@ -38,7 +38,7 @@ impl DNSCryptCertInner { } } -big_array! { BigArray; } +big_array! { BigArray; 64 } #[derive(Derivative, Serialize, Deserialize)] #[derivative(Debug, Default, Clone)]