Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
thrance
6 months ago
|
parent
|
context
|
favorite
| on:
Using uninitialized memory for fun and profit (200...
True of
safe
rust only. You can always fall back to unsafe rust, allocate a chunk of bytes and write/read to it as you wish.
stouset
6 months ago
[–]
Even in unsafe Rust, this is undefined behavior.
LoganDark
6 months ago
|
parent
[–]
You're
allowed
to trigger as much undefined behavior as you wish. It makes the program meaningless of course, but it's not like it stops you.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: