PR24911, Heap overflow issue in qsort_r, dwarf.c
The actual args to this function are "pointers to pointers to debug_info". PR 24911 * dwarf.c (comp_addr_base): Dereference args.
This commit is contained in:
parent
98ac8787e9
commit
d367307b93
2 changed files with 7 additions and 2 deletions
|
@ -6545,8 +6545,8 @@ display_debug_aranges (struct dwarf_section *section,
|
|||
static int
|
||||
comp_addr_base (const void * v0, const void * v1)
|
||||
{
|
||||
debug_info * info0 = (debug_info *) v0;
|
||||
debug_info * info1 = (debug_info *) v1;
|
||||
debug_info *info0 = *(debug_info **) v0;
|
||||
debug_info *info1 = *(debug_info **) v1;
|
||||
return info0->addr_base - info1->addr_base;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue