memory-safety
3 posts
Article
Safe Rust prints freed stack memory
Rust issue #164250 exposes an 11-year borrow-checker unsoundness: covariant field assignment lets a malicious Drop read freed stack memory in safe Rust.
Article
Kees Cook deleted strncpy from the Linux kernel
Linux 7.2 removed strncpy after six years and about 362 commits. Here are the strscpy, strtomem_pad and memcpy replacements and when to use each.
Article
Linux kernel deleted strncpy across 360 patches
Linux 7.2 removed strncpy() from the kernel after six years and 362 commits. What the replacements are and how to port out-of-tree code.