From 0cf7fc4e115c2dcc40901c44b238ab36b5d966fc Mon Sep 17 00:00:00 2001 From: Zach Koopmans Date: Tue, 5 Feb 2019 10:00:22 -0800 Subject: 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 --- test/util/multiprocess_util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'test/util') 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 str_; -- cgit v1.2.3