-
Notifications
You must be signed in to change notification settings - Fork 109
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
Describe efficiently creating a Vec of zeroes #48
Conversation
I wonder if this needs to be said. How else would you intialize a |
I've seen a developer use |
The standard library documentation did add a notice about it after my blog post - open the |
The fix for the bug you reported: It replaces |
This is a good suggestion. I'm picky about the text of the perf book so I ended up rewriting the paragraph from scratch, in 3e165fb, so there is no need to merge this PR. Thank you for the contribution! BTW, from your blog post:
Valgrind's Memcheck tool detects unsafe uses of uninitialized memory. Also, miri might be able to as well, though I'm not sure about that. |
Yes, Miri does detect use of uninit memory as well. At the time of writing the blog post it didn't exist. Also, neither Valgrind nor Miri can be combined with fuzzing. There are even more tools for detecting use of uninit, which are listed in the README: https://github.com/Shnatsel/libdiffuzz#see-also Fortunately Memory Sanitizer now works well with Rust, and can be combined with fuzzing, so that's what I use these days. It makes libdiffuzz pretty much obsolete. |
Since the wording is being changed anyway, should I create issues instead of pull requests in the future? |
Probably makes sense, yes. |
No description provided.