diff --git a/linker/linker_namespaces.h b/linker/linker_namespaces.h index 03520d79d..cd8b09d96 100644 --- a/linker/linker_namespaces.h +++ b/linker/linker_namespaces.h @@ -54,6 +54,9 @@ struct android_namespace_link_t { } bool is_accessible(const char* soname) const { + if (soname == nullptr) { + return false; + } return allow_all_shared_libs_ || shared_lib_sonames_.find(soname) != shared_lib_sonames_.end(); }