diff options
author | Zach Koopmans <zkoopmans@google.com> | 2019-02-05 10:00:22 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-02-05 10:02:06 -0800 |
commit | 0cf7fc4e115c2dcc40901c44b238ab36b5d966fc (patch) | |
tree | 0b283a209ab28fa6a32f8f357264e9ee947b4d84 /test/util | |
parent | 3eae03fe4f2813dc56d6e33cd7feb7760fccfb25 (diff) |
Change /proc/PID/cmdline to read environment vector.
- Change proc to return envp on overwrite of argv with limitations from
upstream.
- Add unit tests
- Change layout of argv/envp on the stack so that end of argv is contiguous with
beginning of envp.
PiperOrigin-RevId: 232506107
Change-Id: I993880499ab2c1220f6dc456a922235c49304dec
Diffstat (limited to 'test/util')
-rw-r--r-- | test/util/multiprocess_util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/util/multiprocess_util.h b/test/util/multiprocess_util.h index c09d6167f..ba5f2601f 100644 --- a/test/util/multiprocess_util.h +++ b/test/util/multiprocess_util.h @@ -74,6 +74,7 @@ class ExecveArray { ExecveArray& operator=(ExecveArray&&) = delete; char* const* get() const { return ptrs_.data(); } + size_t get_size() { return str_.size(); } private: std::vector<char> str_; |