mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-11 19:43:42 +01:00
(tdep_get_elf_image): Pass sizeof buffer to maps_next().
(Logical change 1.199)
This commit is contained in:
parent
64c702cea7
commit
df77cf1ad7
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/* libunwind - a platform-independent unwind library
|
/* libunwind - a platform-independent unwind library
|
||||||
Copyright (C) 2003 Hewlett-Packard Co
|
Copyright (C) 2003-2004 Hewlett-Packard Co
|
||||||
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
|
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
|
||||||
|
|
||||||
This file is part of libunwind.
|
This file is part of libunwind.
|
||||||
|
@ -42,7 +42,7 @@ tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip,
|
||||||
unsigned long hi;
|
unsigned long hi;
|
||||||
|
|
||||||
maps_init (&mi, pid);
|
maps_init (&mi, pid);
|
||||||
while (maps_next (&mi, segbase, &hi, mapoff, path))
|
while (maps_next (&mi, segbase, &hi, mapoff, path, sizeof (path)))
|
||||||
if (ip >= *segbase && ip < hi)
|
if (ip >= *segbase && ip < hi)
|
||||||
{
|
{
|
||||||
found = 1;
|
found = 1;
|
||||||
|
|
Loading…
Reference in a new issue