[PATCH 09/16] perf symbol: avoid segfault in elf_strptr

2012-08-10 Thread Cody P Schafer
If we call elf_section_by_name() with a truncated elf image (ie: the file header indicates that the section headers are placed past the end of the file), elf_strptr() causes a segfault within libelf. Avoid this by checking that we can access the section string table properly. Should really be

[PATCH 09/16] perf symbol: avoid segfault in elf_strptr

2012-08-10 Thread Cody P Schafer
If we call elf_section_by_name() with a truncated elf image (ie: the file header indicates that the section headers are placed past the end of the file), elf_strptr() causes a segfault within libelf. Avoid this by checking that we can access the section string table properly. Should really be

[PATCH 09/16] perf symbol: avoid segfault in elf_strptr

2012-08-09 Thread Cody P Schafer
If we call elf_section_by_name() with a truncated elf image (ie: the file header indicates that the section headers are placed past the end of the file), elf_strptr() causes a segfault within libelf. Avoid this by checking that we can access the section string table properly. Should really be

[PATCH 09/16] perf symbol: avoid segfault in elf_strptr

2012-08-09 Thread Cody P Schafer
If we call elf_section_by_name() with a truncated elf image (ie: the file header indicates that the section headers are placed past the end of the file), elf_strptr() causes a segfault within libelf. Avoid this by checking that we can access the section string table properly. Should really be