mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-18 11:01:41 +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);
|
buf = get_mem(len1);
|
||||||
if (buf == NULL)
|
if (buf == NULL)
|
||||||
return (-1);
|
return (-1);
|
||||||
|
len = len1;
|
||||||
error = sysctl(mib, 4, buf, &len, NULL, 0);
|
error = sysctl(mib, 4, buf, &len, NULL, 0);
|
||||||
if (error) {
|
if (error) {
|
||||||
free_mem(buf, len1);
|
free_mem(buf, len1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue