1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-26 09:07:38 +01:00

Fix an issue where len was too short for sysctl to recieve the process

vm map.
This commit is contained in:
Konstantin Belousov 2010-04-13 15:33:11 +03:00
parent 02d0cb6f71
commit 61f4345a9e

View file

@ -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);