RISC-V Bytes: Stack Use After Return in C, Go, and Rust

from blog Daniel Mangum, | ↗ original
If you write any code that deals with manual memory management, you are likely familiar with the concept of a “use after free” bug. These bugs can be the source of, at best, program crashes, and at worst serious vulnerabilities. A lesser discussed counterpart to use after free, is “use after return”. In some cases, the latter can be even more...