Community
Participate
Working Groups
The file type is not checked as being an ELF file in the last "fallback" else if of search_regions() in tcf_elf.c else if (r->addr <= addr1 && r->addr + r->size > addr0) { add_region(res, r); } This caused the ELF reader to be assumed valid even when the symbol file is not ELF, if the ELF reader was registered first because it contained a region that was added when it should not have.
Created attachment 251949 [details] proposed patch Here is a proposed patch that checks for the file type at the begining of the function.
Eugene, what do you think about this patch ?