mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-27 05:23:43 +01:00
Fix an issue where len was too short for sysctl to recieve the process
vm map.
This commit is contained in:
parent
02d0cb6f71
commit
61f4345a9e
1 changed files with 1 additions and 0 deletions
|
@ -72,6 +72,7 @@ tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip,
|
|||
buf = get_mem(len1);
|
||||
if (buf == NULL)
|
||||
return (-1);
|
||||
len = len1;
|
||||
error = sysctl(mib, 4, buf, &len, NULL, 0);
|
||||
if (error) {
|
||||
free_mem(buf, len1);
|
||||
|
|
Loading…
Reference in a new issue