sidefuzz icon indicating copy to clipboard operation
sidefuzz copied to clipboard

wasm error on `sidefuzz` execution

Open niluxv opened this issue 6 years ago • 3 comments

Hi, I' trying to sidefuzz the sha3 implementation of RustCrypto, but it gives the following error: Error: wasm error: Function: Module doesn't have export input_is_str Here is the code:

use sha3::{Digest, Sha3_512};

#[no_mangle]
pub extern "C" fn fuzz() {
  let input = sidefuzz::fetch_input(80);
  sidefuzz::black_box(Sha3_512::default().chain(input).result());
}

Do you know what is going wrong?

niluxv avatar Mar 21 '20 09:03 niluxv

Hello, I met the same problem with you when running sidefuzz-targets. Could you tell me how to solve this problem if you have done?

Librajiayou avatar Oct 05 '20 08:10 Librajiayou

I didn't look at it again until now, but updating my sidefuzz executable and using the git version the library instead of version 0.1.2 seems to have fixed the problem.

So

sidefuzz = {git = "https://github.com/phayes/sidefuzz.git"}

instead of

sidefuzz = "0.1.2"

niluxv avatar Oct 05 '20 15:10 niluxv

Yes, it did. Thank you for your help!

Librajiayou avatar Oct 06 '20 12:10 Librajiayou