Paper record
W1878544538AddressSanitizer: a fast address sanity checker
Konstantin Serebryany, Derek L. Bruening, Alexander Potapenko, Dmitry Vyukov
- Year
- 2012
- Venue
- USENIX Annual Technical Conference
- References
- 14
- Cited by
- 1,209
Details and counts from OpenAlex.
Abstract
Memory access bugs, including buffer overflows and usesoffreedheapmemory,remainaseriousproblemfor programminglanguageslike CandC++. Manymemory errordetectorsexist, but most of them are either slow or detectalimitedset ofbugs,orboth. This paper presents AddressSanitizer, a new memory error detector. Our tool finds out-of-boundsaccesses to heap, stack, and global objects, as well as use-after-free bugs. It employs a specialized memory allocator and code instrumentation that is simple enough to be implemented in any compiler, binary translation system, or evenin hardware. AddressSanitizer achieves efficiency without sacrificing comprehensiveness. Its average slowdown is just 73 % yet it accurately detects bugs at the point of occurrence. Ithasfoundover300previouslyunknownbugsin theChromiumbrowserandmanybugsinothersoftware.