We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa67e05 commit a5f7814Copy full SHA for a5f7814
crates/test-fuzz/fuzz_targets/encoding_parse.rs
@@ -5,6 +5,10 @@ use libfuzzer_sys::fuzz_target;
5
use objc2::encode::{Encoding, EncodingBox};
6
7
fuzz_target!(|s: &str| {
8
+ // Limit string length to < 1024 so that we don't hit stack overflows
9
+ if s.len() > 1024 {
10
+ return;
11
+ }
12
// Check that parsing encodings doesn't panic
13
if let Ok(enc) = EncodingBox::from_str(s) {
14
// Check a "negative" case of `equivalent_to_box`
0 commit comments