A glance at compiler internals: Keep my memset
Summary
Why Clang/LLVM can delete your memset: tracing llvm.memset through Dead Store Elimination, the risk for code that wipes secrets, and the volatile function-pointer trick that keeps the wipe alive.
- Published
- Collected
--- id: 4572 title: "A glance at compiler internals: Keep my memset" source_domain: blog.quarkslab.com source_url: "https://blog.quarkslab.com/a-glance-at-compiler-internals-keep-my-memset.html" published_at: "2014-06-26T22:00:00Z" tags: ["c", "llvm", "compilers", "security", "clang", "optimization"] phying_url: "https://phying.com/item/4572" lang: en --- # A glance at compiler internals: Keep my memset ## Summary Why Clang/LLVM can delete your memset: tracing llvm.memset through Dead Store Elimination, the risk for code that wipes secrets, and the volatile function-pointer trick that keeps the wipe alive. ## Intelligence Metadata - **Sources:** blog.quarkslab.com - **Published:** 2014-06-26T22:00:00Z - **Original:** https://blog.quarkslab.com/a-glance-at-compiler-internals-keep-my-memset.html - **Phying News:** https://phying.com/item/4572