Skip to content

Commit 888fce8

Browse files
authored
aead_fuzzing::Aead::new: Don't panic in release builds. (#1353)
The original rationale for this panic was to ensure we never ship users a Firefox with a crypto-disabled version of aead. However, it is common for Firefox fuzzing builds to be optimized: fuzzing is often combined with LLVM's Address Sanitizer, whose docs recommend optimized builds. Such Firefox builds crash the moment anything tries to initialize Aead. There are other safeguards in place that prevent Mozilla from shipping fuzzing-enabled builds, so this one can be removed.
1 parent 26e19e7 commit 888fce8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

neqo-crypto/src/aead_fuzzing.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ pub struct Aead {}
1515
#[allow(clippy::unused_self)]
1616
impl Aead {
1717
pub fn new(_version: Version, _cipher: Cipher, _secret: &SymKey, _prefix: &str) -> Res<Self> {
18-
#[cfg(not(debug_assertions))]
19-
panic!("Trying to run a non-debug fuzzing build.");
20-
2118
Ok(Self {})
2219
}
2320

0 commit comments

Comments
 (0)