diff options
| author | Jiyong Park <jiyong@google.com> | 2019-05-17 18:48:32 +0900 |
|---|---|---|
| committer | Jiyong Park <jiyong@google.com> | 2019-05-17 18:51:44 +0900 |
| commit | d970ccb56e399e916b8a660920df3d873c25facb (patch) | |
| tree | ae2e7f7695e4bc18880a9d83c4f4e5b02e93d586 /base/errors_unix.cpp | |
| 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
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions
