AngoraFuzzer / Angora

Angora is a mutation-based fuzzer. The main goal of Angora is to increase branch coverage by solving path constraints without symbolic execution.
Apache License 2.0
918 stars 168 forks source link

An error in compiling Angora #76

Open MoonLight-SteinsGate opened 4 years ago

MoonLight-SteinsGate commented 4 years ago

When I compile Angora with running build.sh, there is an error about mismatched types which is shown below. But I've never seen anything like this before. And I didn't make changes on the source code.


moonlight@ubuntu:~/Downloads/Angora-master$ ./build/build.sh 
++ command -v llvm-config
+ '[' -x /home/moonlight/clang+llvm/bin/llvm-config ']'
+ PREFIX=/home/moonlight/Downloads/Angora-master/bin/
+ cargo build
   Compiling angora v1.2.2 (/home/moonlight/Downloads/Angora-master/fuzzer)
error[E0308]: mismatched types
  --> fuzzer/src/executor/limit.rs:23:43
   |
23 |             let mem_limit: libc::rlim_t = size;
   |                                           ^^^^ expected u32, found u64
help: you can convert an `u64` to `u32` and panic if the converted value wouldn't fit
   |
23 |             let mem_limit: libc::rlim_t = size.try_into().unwrap();
   |                                           ^^^^^^^^^^^^^^^^^^^^^^^^

warning: use of deprecated item 'std::os::unix::process::CommandExt::before_exec': should be unsafe, use `pre_exec` instead
  --> fuzzer/src/executor/limit.rs:43:14
   |
43 |         self.before_exec(func)
   |              ^^^^^^^^^^^
   |
   = note: #[warn(deprecated)] on by default

warning: use of deprecated item 'std::os::unix::process::CommandExt::before_exec': should be unsafe, use `pre_exec` instead
  --> fuzzer/src/executor/limit.rs:53:14
   |
53 |         self.before_exec(func)
   |              ^^^^^^^^^^^

warning: use of deprecated item 'std::os::unix::process::CommandExt::before_exec': should be unsafe, use `pre_exec` instead
  --> fuzzer/src/executor/limit.rs:68:18
   |
68 |             self.before_exec(func)
   |                  ^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
error: Could not compile `angora`.

To learn more, run the command again with --verbose.
spinpx commented 4 years ago

Could you provide me your rust version?

MoonLight-SteinsGate commented 4 years ago

Sorry, I have refreshed the system and the rust have been unloaded. So I can’t provide the rust version.

在 2019年12月15日,下午10:48,sp1npx notifications@github.com 写道:

Can you provide me your rust version?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AngoraFuzzer/Angora/issues/76?email_source=notifications&email_token=AGLKPYAXIOZVBRKPAC3GDTTQYY7VPA5CNFSM4IVB7NJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG42WRI#issuecomment-565816133, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLKPYGEBARUMOXSQKMGKALQYY7VPANCNFSM4IVB7NJA.