diff options
author | Evgenii Stepanov <eugenis@google.com> | 2021-09-17 23:31:57 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-09-17 23:31:57 +0000 |
commit | ffd106e790f8babb4fb0cf245c50672430eca76b (patch) | |
tree | 507225054ea1c0685b0a3ade5a0afe343a9689e2 | |
parent | cf9f64b76258f79c0dd685d207bd5b29578e2a2f (diff) | |
parent | d0e024788206324fde248b2cf492c6d2e2c7ccaf (diff) | |
download | gtest_extras-ffd106e790f8babb4fb0cf245c50672430eca76b.tar.gz |
Fix stack-buffer-underflow in RunInIsolationMode. am: 46817ceaf3 am: 064b8d1e94 am: e8cf69e0d3 am: d0e0247882
Original change: https://android-review.googlesource.com/c/platform/system/testing/gtest_extras/+/1830381
Change-Id: Iaf0ab3361480d5a31264db5f6095adcdc9faead0
-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 |