From 5f611f6f7fe7f9b01d54f4525b50b0b2e5996169 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 29 Jun 2022 11:11:39 +1000 Subject: [PATCH] Conditionally compile the hex macro We only use this macro when not fuzzing, add a cfg attribute to build it in only when needed. --- src/key.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/key.rs b/src/key.rs index dfbaa9b..e38f4aa 100644 --- a/src/key.rs +++ b/src/key.rs @@ -1651,6 +1651,7 @@ mod test { use crate::Error::{InvalidPublicKey, InvalidSecretKey}; use crate::Scalar; + #[cfg(not(fuzzing))] macro_rules! hex { ($hex:expr) => ({ let mut result = vec![0; $hex.len() / 2];