Use-after-free (UAF) and use-after-return (UAR) are dangerous, difficult-to-spot bugs. Check out the following test cases for each of them.
Use-after-free/Use-after-return bugs
Get Hands-On System Programming with Linux now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.