Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasm error on sidefuzz execution #27

Open
niluxv opened this issue Mar 21, 2020 · 3 comments
Open

wasm error on sidefuzz execution #27

niluxv opened this issue Mar 21, 2020 · 3 comments

Comments

@niluxv
Copy link

niluxv commented Mar 21, 2020

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?

@Librajiayou
Copy link

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?

@niluxv
Copy link
Author

niluxv commented Oct 5, 2020

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"

@Librajiayou
Copy link

Yes, it did. Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants