android / android/ndk

add LSAN support

Open
#431 13 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
2.3k
Forks
310
PR merge metrics
No merged PRs in 30d

Description

--------------------------------------------------------------------------------

#### Description
Not sure if LeakSanitizer is supported on
on pixel with userdebug build android 7.1.2

#### Environment Details
Platform - OSX 10.12.5
Device - Google Pixel, userdebug build NJH47B android-7.1.2_r17
NDK 15.1.4119039

I was trying to use Address Sanitizer on Anroid, I built the 7.1.2 userdebug version on Pixel.

After run ./asan_device_setup, I was able to catch simple use-after-free, stack-overflow and heap-buffer-overflow. However, ASAN seems cant detect simple memory leaks, is LSAN enabled on Android now.

Contributor guide

Open the contributing guide

Research direction

Start with the ./asan_device_setup entry point and the reported Android 7.1.2 userdebug environment on a Google Pixel. Determine whether LeakSanitizer is supported alongside AddressSanitizer for this setup; done means the support status and any required behavior are established for detecting simple memory leaks.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
mobile-dev, security, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.