Skip to content

Commit 5f611f6

Browse files
committed
Conditionally compile the hex macro
We only use this macro when not fuzzing, add a cfg attribute to build it in only when needed.
1 parent 69349a8 commit 5f611f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/key.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1651,6 +1651,7 @@ mod test {
16511651
use crate::Error::{InvalidPublicKey, InvalidSecretKey};
16521652
use crate::Scalar;
16531653

1654+
#[cfg(not(fuzzing))]
16541655
macro_rules! hex {
16551656
($hex:expr) => ({
16561657
let mut result = vec![0; $hex.len() / 2];

0 commit comments

Comments
 (0)