Project

General

Profile

Bug #17794 ยป ruby-addr2line-free-invalid-pointer.patch

xtkoba (Tee KOBAYASHI), 04/12/2021 04:20 AM

View differences:

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;
}
    (1-1/1)