diff options
author | Evgenii Stepanov <eugenis@google.com> | 2021-09-17 22:54:28 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-09-17 22:54:28 +0000 |
commit | 064b8d1e94b1c4951ddcfeaa3705250ce5fef879 (patch) | |
tree | 507225054ea1c0685b0a3ade5a0afe343a9689e2 | |
parent | f79c211cf2b4e6e32d7ed9db7ec45cfe26c7c7d6 (diff) | |
parent | 46817ceaf3f25d2e317061e29dfdcd0048e2249c (diff) | |
download | gtest_extras-064b8d1e94b1c4951ddcfeaa3705250ce5fef879.tar.gz |
Fix stack-buffer-underflow in RunInIsolationMode. am: 46817ceaf3
Original change: https://android-review.googlesource.com/c/platform/system/testing/gtest_extras/+/1830381
Change-Id: I035ab37a453ce740fc9b456e195044d9aab77eb6
-rw-r--r-- | IsolateMain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IsolateMain.cpp b/IsolateMain.cpp index 6ef823d..980fb70 100644 --- a/IsolateMain.cpp +++ b/IsolateMain.cpp @@ -102,7 +102,7 @@ static bool RunInIsolationMode(std::vector<const char*>& args) { pid_t ppid = getppid(); std::string exe_path = std::string("/proc/") + std::to_string(ppid) + "/exe"; char buf[PATH_MAX + 1]; - size_t len; + ssize_t len; // NB We can't use things like android::base::* or std::filesystem::* due to linking // issues. // Since PATH_MAX is the longest a symlink can be in posix we don't need to |