Skip to content

Commit

Permalink
Drop workaround for issue image-rs#80; it does not let us escape cras…
Browse files Browse the repository at this point in the history
…hes anyway.
  • Loading branch information
Shnatsel committed Jun 27, 2018
1 parent 5c60ae1 commit 724ae3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions fuzz/fuzz_targets/fuzz_target_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
#[macro_use] extern crate libfuzzer_sys;
extern crate png;

// allocator_may_return_null=1 prevents crash on allocating huge amounts of memory, see #80
// detect_odr_violation=0 is for https://github.com/rust-lang/rust/issues/41807
const ASAN_DEFAULT_OPTIONS: &'static [u8] = b"allocator_may_return_null=1,detect_odr_violation=0\0";
const ASAN_DEFAULT_OPTIONS: &'static [u8] = b"detect_odr_violation=0\0";

#[no_mangle]
pub extern "C" fn __asan_default_options() -> *const u8 {
Expand Down
3 changes: 1 addition & 2 deletions png-afl/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
extern crate afl;
extern crate png;

// allocator_may_return_null=1 prevents crash on allocating huge amounts of memory, see #80
// detect_odr_violation=0 is for https://github.com/rust-lang/rust/issues/41807
const ASAN_DEFAULT_OPTIONS: &'static [u8] = b"allocator_may_return_null=1,detect_odr_violation=0\0";
const ASAN_DEFAULT_OPTIONS: &'static [u8] = b"detect_odr_violation=0\0";

#[no_mangle]
pub extern "C" fn __asan_default_options() -> *const u8 {
Expand Down

0 comments on commit 724ae3c

Please sign in to comment.