-
Notifications
You must be signed in to change notification settings - Fork 352
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
foreign function getcwd not implemented #762
Comments
Yeah, Miri currently does not support interacting with the current working directory.
So |
Sorry for late response... again I found another above kind of error Still miri does not support of such kind projects. BTW.. my project is publicly available here |
That's a different bug. We also don't support accessing files.
Indeed, Miri is currently only suited for pure Rust code that does not communicate with the outside world. |
" does not communicate with the outside world." What does its means, i think all codes (all crates, library, etc.) are written in rust. So can you receommend me how to analyse (especially how to fuzz) such kind of big project... I have tried AFL, libFuzz, honggfuzz, etc. with some errors and success, but not sure whether we can properly fuzz such kind of large projects (written in rust) or not ?? |
It means no interaction with the OS: no file system, no network, no clock, and so on. We want to support this eventually, it's just a lot of work.
I'm afraid I do not have a good overview over the Rust fuzzer ecosystem. You might try asking on the forum or reddit. @Shnatsel also knows more. |
Not sure what you mean by "properly fuzz", but if you're dealing with a large codebase I'd suggest the following:
Keep in mind that fuzzing is not a perfect method of bug discovery - just like testing, it can prove presence of bugs but cannot prove their absence. If you want really high assurance in your code, like in smart contracts, you'd need something like https://github.com/viperproject/prusti-dev or https://github.com/facebookexperimental/MIRAI but those are experimental and are probably not complete enough for general usage. |
Closing in favor of the more general #923. |
I am doing analysis on one of my blockchain project using
miri
, but when I I runcargo miri test
(on my project to be tested) with no errors (and also got zero test passed and zero test failed) .. but when i givecargo miri run
command on my project (of blockchain) then miri gives me following error ..error[E0080]: Miri evaluation error: miri does not support gathering system entropy in deterministic mode!
Use '-Zmiri-seed=' to enable random number generation.
WARNING: Miri does not generate cryptographically secure entropy -
do not use Miri to run any program that needs secure random number generation
Again when i run
cargo miri run -- -Zmiri-seed=018308
it shows following errorThe text was updated successfully, but these errors were encountered: