|
|
Log in / Subscribe / Register

Beingessner: Rust's Unsafe Pointer Types Need An Overhaul

Beingessner: Rust's Unsafe Pointer Types Need An Overhaul

Posted Mar 22, 2022 14:55 UTC (Tue) by wtarreau (subscriber, #51152)
In reply to: Beingessner: Rust's Unsafe Pointer Types Need An Overhaul by farnz
Parent article: Beingessner: Rust's Unsafe Pointer Types Need An Overhaul

Many thanks. That's exactly the explanation I was missing, and your memcpy() vs memmove() example is point on!
I think I'm seeing a few cases where that could help, especially when some asm() statements are used and the
compiler cannot figure that some values cannot have changed there. At least now I know what to look for and
how to experiment.
Thank you!


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds