From 6e4b55b79aa4f446f399e32b23b393585ee65412 Mon Sep 17 00:00:00 2001 From: nianyuu Date: Sat, 26 Jul 2025 16:51:13 +0800 Subject: [PATCH] fix asan bug Signed-off-by: nianyuu --- modules/asan/asan_detector.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/asan/asan_detector.c b/modules/asan/asan_detector.c index 9053c41a..3b6c950c 100644 --- a/modules/asan/asan_detector.c +++ b/modules/asan/asan_detector.c @@ -141,14 +141,16 @@ static int AsanSpawnGetSpawningFlag(AppSpawnMgr *content, AppSpawningCtx *proper if (property->forkCtx.coldRunPath) { free(property->forkCtx.coldRunPath); } -#ifndef CJAPP_SPAWN - property->forkCtx.coldRunPath = strdup("/system/asan/bin/appspawn"); +#ifdef CJAPP_SPAWN + property->forkCtx.coldRunPath = strdup("/system/asan/bin/cjappspawn"); #elif NATIVE_SPAWN property->forkCtx.coldRunPath = strdup("/system/asan/bin/nativespawn"); #elif HYBRID_SPAWN property->forkCtx.coldRunPath = strdup("/system/asan/bin/hybridspawn"); +#elif NWEB_SPAWN + property->forkCtx.coldRunPath = strdup("/system/asan/bin/nwebspawn"); #else - property->forkCtx.coldRunPath = strdup("/system/asan/bin/cjappspawn"); + property->forkCtx.coldRunPath = strdup("/system/asan/bin/appspawn"); #endif if (property->forkCtx.coldRunPath == NULL) { APPSPAWN_LOGE("Failed to set asan exec path %{public}s", GetProcessName(property)); -- Gitee