Bug #17794 ยป ruby-addr2line-free-invalid-pointer.patch
addr2line.c | ||
---|---|---|
static unsigned long
|
||
uncompress_debug_section(ElfW(Shdr) *shdr, char *file, char **ptr)
|
||
{
|
||
*ptr = NULL;
|
||
#ifdef SUPPORT_COMPRESSED_DEBUG_LINE
|
||
ElfW(Chdr) *chdr = (ElfW(Chdr) *)(file + shdr->sh_offset);
|
||
unsigned long destsize = chdr->ch_size;
|
||
... | ... | |
fail:
|
||
free(*ptr);
|
||
*ptr = NULL;
|
||
#endif
|
||
return 0;
|
||
}
|