Skip to content

Commit

Permalink
Conditionally compile the hex macro
Browse files Browse the repository at this point in the history
We only use this macro when not fuzzing, add a cfg attribute to build it
in only when needed.
  • Loading branch information
tcharding committed Jun 29, 2022
1 parent 69349a8 commit 5f611f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/key.rs
Expand Up @@ -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];
Expand Down

0 comments on commit 5f611f6

Please sign in to comment.