commit | a27cadfa5fd75cd54e1597a13ed517fdd6909fe3 | [log] [tgz] |
---|---|---|
author | Dimitry Ivanov <dimitry@google.com> | Mon Apr 30 09:13:23 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Apr 30 09:13:23 2018 +0000 |
tree | ce4e1c8b88ddca1006f1be3e5e71349ac30cc083 | |
parent | 8602538a15f89f91d6994c3abfd64a274bf7ddb0 [diff] | |
parent | 7217a092a6cc122f7601e4f0007f844f15ffeb3a [diff] |
Merge "Libraries without dt_soname are inaccessible"
diff --git a/linker/linker_namespaces.h b/linker/linker_namespaces.h index 03520d7..cd8b09d 100644 --- a/linker/linker_namespaces.h +++ b/linker/linker_namespaces.h
@@ -54,6 +54,9 @@ } 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(); }