Clang address sanitizer on GTK+

21 views
Skip to first unread message

Neil Hodgson

unread,
Apr 25, 2013, 7:04:59 PM4/25/13
to scintilla...@googlegroups.com, scite-i...@googlegroups.com
AddressSanitizer is a tool for finding memory bugs, like writing beyond allocations, which is included in recent versions of Clang.
http://code.google.com/p/address-sanitizer/wiki/AddressSanitizer
The main advantage of AddressSanitizer over other tools like Valgrind is that its faster so builds that include it can be used as normal.

New Linux distributions like Ubuntu 13.04 include Clang 3.2 so allow use of AddressSanitizer. I've updated the make files for Scintilla and SciTE to use AddressSanitizer for Clang debug builds (make CLANG=1 DEBUG=1). No new bugs have been found yet but I suspect there may be bugs in lexers I don't use.

Neil
Reply all
Reply to author
Forward
0 new messages