cargo-fuzz
cargo-fuzz copied to clipboard
Cannot choose custom allocator
Anything using a custom allocator cannot be fuzzed, even if the same allocator is chosen in the fuzzer script.
Could you provide more information about the errors you see?
Edit: added information about a different bug here, sorry :(
Errors I get are these:
"cannot link together two allocators: custom_alloc and alloc_system". This happens even when I say "extern crate custom_alloc;" in the fuzzer_script. Somehow it always wants to pull in alloc_system
Yeah, I see this error when I try to fuzz miri. I assume it has something to do with #![feature(rustc_private)]
.
I think the new global_allocator attribute (RFC 1974) took care of it. Can you recheck?