Whamcloud - gitweb
AOSP: e2fsdroid: disable asan leak detection
authorSteven Moreland <smoreland@google.com>
Mon, 15 Apr 2024 23:07:31 +0000 (23:07 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 20 May 2024 17:13:56 +0000 (13:13 -0400)
borked and breaks asan build

Bugs: me
Test: build with SANITIZE_HOST=address
Change-Id: I9ae15ba328081c38e31c61834e80ce10765f9e30
From AOSP commit: eff2c071b546c3d2d3ea5eb89328babcc48e4bc2

contrib/android/e2fsdroid.c

index 6e51414..82bd340 100644 (file)
 #define UID_GID_MAP_MAX_EXTENTS 340
 #endif
 
+// disable leak detection, breaks host asan build
+const char *__asan_default_options() {
+    return "detect_leaks=0";
+}
+
 static char *prog_name = "e2fsdroid";
 static char *in_file;
 static char *block_list;