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.
2 parents 628032a + 500b98a commit 53dc863Copy full SHA for 53dc863
src/lib.rs
@@ -1,6 +1,8 @@
1
-#![allow(improper_ctypes)] // we do not actually cross the FFI bound here
+pub use arbitrary;
2
3
extern "C" {
4
+ #![allow(improper_ctypes)] // we do not actually cross the FFI bound here
5
+
6
fn rust_fuzzer_test_input(input: &[u8]);
7
}
8
@@ -48,7 +50,7 @@ macro_rules! fuzz_target {
48
50
(|$data:ident: $dty: ty| $body:block) => {
49
51
#[no_mangle]
52
pub extern "C" fn rust_fuzzer_test_input(bytes: &[u8]) {
- use arbitrary::{Arbitrary, RingBuffer};
53
+ use libfuzzer_sys::arbitrary::{Arbitrary, RingBuffer};
54
55
let mut buf = match RingBuffer::new(bytes, bytes.len()) {
56
Ok(b) => b,
0 commit comments