diff --git a/modules/asan/asan_detector.c b/modules/asan/asan_detector.c index 52be5a6835424d2886a63c552de4182cdcfb95eb..3bbecf98ed17fc39f8362689d17a5a1eeb4bfaeb 100644 --- a/modules/asan/asan_detector.c +++ b/modules/asan/asan_detector.c @@ -141,12 +141,14 @@ 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 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));