Loading repository data…
Loading repository data…
sonicdebris / repository
Example of enabling address sanitizer for android native project, using cmake
Example of enabling address sanitizer for android native project
Enabling the sanitizer is a matter of:
Additionally, here we set up an additional build type in gradle, so all relevant operations are only performed for the new "sanitize" build type, and won't affect either the debug or the release build.
General info on address sanitizer: https://android-developers.googleblog.com/2017/08/android-bug-swatting-with-sanitizers.html
Main source of inspiration and information: https://virtualrealitypop.com/oreo-ndk-secrets-7d075a9b084
On creating and packaging wrap.sh: https://developer.android.com/ndk/guides/wrap-script#packaging_wrapsh