Skip to content

Commit 53dc863

Browse files
committed
Merge remote-tracking branch 'upstream/master' into update
Signed-off-by: koushiro <[email protected]>
2 parents 628032a + 500b98a commit 53dc863

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
#![allow(improper_ctypes)] // we do not actually cross the FFI bound here
1+
pub use arbitrary;
22

33
extern "C" {
4+
#![allow(improper_ctypes)] // we do not actually cross the FFI bound here
5+
46
fn rust_fuzzer_test_input(input: &[u8]);
57
}
68

@@ -48,7 +50,7 @@ macro_rules! fuzz_target {
4850
(|$data:ident: $dty: ty| $body:block) => {
4951
#[no_mangle]
5052
pub extern "C" fn rust_fuzzer_test_input(bytes: &[u8]) {
51-
use arbitrary::{Arbitrary, RingBuffer};
53+
use libfuzzer_sys::arbitrary::{Arbitrary, RingBuffer};
5254

5355
let mut buf = match RingBuffer::new(bytes, bytes.len()) {
5456
Ok(b) => b,

0 commit comments

Comments
 (0)