English
C and C++ programming languages have certain characteristics that can act like a double-edged sword. Having direct access to memory allows programmers to implement linked-lists and do pointer arithmetic operations but at the same time it also allows buffer overflows. Or, having vast amount of undefined behaviors allows the compilers to optimize the code to the full extent, but it also causes major vulnerabilities such as double free (i.e. trying to release part of memory that was already released). Code sanitizers, first introduced with the Address Sanitizer by Google in 2012, offer a flexible code weakness mitigation run-time mechanism. In this thesis, the major code sanitizers were tested on popular open-source software with regard to their effectivenesses on finding bugs that have the potential of compromising security. It is also discussed if they can be employed in production (release mode), and if they can be an alternative to porting code into "secure" languages. It is found out that code sanitizers in certain cases can be used in production in order to reduce the attack surface. Furthermore, it is found out that if disk size is not scarce, Undefined Behavior Sanitizer can b
Sign in with your free account to read, download EPUBs or listen.
Ebook · Reducing The Security Risks Of C And C++ Programming Languages With Code Sanitizers · Fatih Uzunoğlu · Internet Archive
C · C++ · Security · Code Sanitizers · LLVM Clang · GNU GCC · ASan · TSan · MSan · UBSan