mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 12:23:31 +08:00
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:
@ -1,3 +1,8 @@
|
|||||||
|
2019-08-17 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
PR 24911
|
||||||
|
* dwarf.c (comp_addr_base): Dereference args.
|
||||||
|
|
||||||
2019-08-16 Alan Modra <amodra@gmail.com>
|
2019-08-16 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR 24909
|
PR 24909
|
||||||
|
@ -6545,8 +6545,8 @@ display_debug_aranges (struct dwarf_section *section,
|
|||||||
static int
|
static int
|
||||||
comp_addr_base (const void * v0, const void * v1)
|
comp_addr_base (const void * v0, const void * v1)
|
||||||
{
|
{
|
||||||
debug_info * info0 = (debug_info *) v0;
|
debug_info *info0 = *(debug_info **) v0;
|
||||||
debug_info * info1 = (debug_info *) v1;
|
debug_info *info1 = *(debug_info **) v1;
|
||||||
return info0->addr_base - info1->addr_base;
|
return info0->addr_base - info1->addr_base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user