commit | 325c45b53aed5675c327f0090c11bce5dadd64f2 | [log] [tgz] |
---|---|---|
author | Jiyong Park <jiyong@google.com> | Fri May 17 18:48:32 2019 +0900 |
committer | Jiyong Park <jiyong@google.com> | Fri May 17 18:51:44 2019 +0900 |
tree | ae2e7f7695e4bc18880a9d83c4f4e5b02e93d586 | |
parent | 264345c4eefc8aa83e16728f52d48ebdbe7d7102 [diff] |
Fix nullpointer dereference in libnativeloader The `char* path` argument of OpenNativeLibrary() can be nullptr. We are constructing std::string from the path, which is a bug. Fixing it by using char* without converting it to std::string. Test: run-gtests.sh JniCompilerTest.CompileAndRunIntMethodThroughStubNormalCompiler is successful. Change-Id: I91249da7c1a72a2dff9bc77e477b465e0c7ee056