logo
logo
Sign in

Developers Blog Insight: Know About Android Sanitizers

avatar
Janet Scott
Developers Blog Insight: Know About Android Sanitizers

This write-up will talk about the above-mentioned Android sanitizers in detail to give the actual impression on how these elements work.

Being a compiler based component, AddressSanitizer (ASan) is a tool to perfectly detect the runtime of different types of memory errors in C and C++ code.

This helps (ASan) to identify memory usages bugs such as use-after scope, free, return as well as double-free.

In case, device manufacturers wish to include the same in their test builds, they can do it through LOCAL_SANITIZE:=default-ub in their makefiles or default-ub: true in the sanitize block of blueprint files.

This is not a technically undefined behavior but it is still counted in the sanitizer.

This initiates the compiler to embed the setting as: sanitizer_cov_trace_pc_guard(_variable) on particular edge.

collect
0
avatar
Janet Scott
guide
Zupyak is the world’s largest content marketing community, with over 400 000 members and 3 million articles. Explore and get your content discovered.
Read more