Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libproc: fix mapping names low in the address space
For reasons which escape my understanding, address ranges in /proc/$pid/maps are zero-padded up to eight digits, but filenames in /proc/$pid/map_files are not zero-padded at all. Strip the zeroes off when deriving the latter from the former. (Only observable with non-PIE executables, since only they are ever that low in the address space.) Signed-off-by: Nick Alcock <nick.alcock@oracle.com> Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
- Loading branch information