Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zesterer
5 months ago
|
parent
|
context
|
favorite
| on:
Rustproofing Linux (Part 1/4 Leaking Addresses) (2...
That's... simply not true. Pointer arithmetic is not, in general, safe. Example:
https://doc.rust-lang.org/std/primitive.pointer.html#method....
gpm
5 months ago
[–]
Eh... the ptr::add function exists if you want to make extra promises to the compiler to let it optimize better, but if you don't a safe version exists:
https://doc.rust-lang.org/std/primitive.pointer.html#method....
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: