You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
在 2019年12月15日,下午10:48,sp1npx ***@***.***> 写道:
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 <#76?email_source=notifications&email_token=AGLKPYAXIOZVBRKPAC3GDTTQYY7VPA5CNFSM4IVB7NJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG42WRI#issuecomment-565816133>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGLKPYGEBARUMOXSQKMGKALQYY7VPANCNFSM4IVB7NJA>.
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.
The text was updated successfully, but these errors were encountered: