diff options
author | Dimitry Ivanov <dimitry@google.com> | 2016-08-25 14:53:35 -0700 |
---|---|---|
committer | Dimitry Ivanov <dimitry@google.com> | 2016-08-26 02:33:14 +0000 |
commit | f98712990344c78f6d844b3b81bb284c5b550d94 (patch) | |
tree | 7ead2ae862fc60cf7bb30e3b847a8cc94f8bf64e /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 5aa67675f853af9588ac9274ecf86d7858695ce2 (diff) |
linker: stat /proc/self/exe instead of executable_path
The absolute path to an executable may no longer be valid for
example when the file is unlinked immediately after exec.
Using /proc/self/exe instead of absolute path solves this problem.
Bug: http://b/31084669
Test: Run the app from http://b/31084669 make sure executable starts
Test: by checking ps and /proc/<pid>/exe
Change-Id: I5c819f39ef0fc4fc71b05de71e8af9ede611f04c
(cherry picked from commit 7da4bbbe87a7eca742c6c45a76aaf191aa70d948)
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions