commit | d970ccb56e399e916b8a660920df3d873c25facb | [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 | 6efb8e77548ba1e17a7b1bd11b923c74986a4d67 [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