AddressSanitizer: Besser als valgrind und Co.?



  • Auf der Projektwebseite heißt es:

    AddressSanitizer is a fast memory error detector. It consists of a compiler instrumentation module and a run-time library. The tool can detect the following types of bugs: 
        Out-of-bounds accesses to heap, stack and globals
        Use-after-free
        Use-after-return (to some extent)
        Double-free, invalid free
    

    Valgrind kann ja keine bound-checks auf dem Stack machen. Gibt es da andere Tools, die ähnlich viel können wie AddressSanitizer oder ist das wirklich ein Alleinstellungsmerkmal?

    L. G.
    Steffo



  • Valgrind hat dafür mittlerweile auch (experimentelle) Unterstützung. Einfach mit --tool=exp-sgcheck starten.


Anmelden zum Antworten