mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-27 05:21:08 +01:00
Ensure that the mappings table is populated in proc_objname().
MFC after: 1 week Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
b95b332c4b
commit
3573cf3376
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=318687
@ -339,6 +339,9 @@ proc_objname(struct proc_handle *p, uintptr_t addr, char *objname,
|
||||
prmap_t *map;
|
||||
size_t i;
|
||||
|
||||
if (p->nmappings == 0)
|
||||
if (proc_rdagent(p) == NULL)
|
||||
return (NULL);
|
||||
for (i = 0; i < p->nmappings; i++) {
|
||||
map = &p->mappings[i].map;
|
||||
if (addr >= map->pr_vaddr &&
|
||||
|
Loading…
Reference in New Issue
Block a user