Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323680
b: refs/heads/master
c: 4927465
h: refs/heads/master
v: v3
  • Loading branch information
Cody P Schafer authored and Arnaldo Carvalho de Melo committed Aug 13, 2012
1 parent b9d7ca9 commit 7029939
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 515850e4fbd87c8f249446faa2e5ad98e672711d
refs/heads/master: 492746546fe380da768c8496213e26aa91b9b3aa
4 changes: 4 additions & 0 deletions trunk/tools/perf/util/symbol-elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ static Elf_Scn *elf_section_by_name(Elf *elf, GElf_Ehdr *ep,
Elf_Scn *sec = NULL;
size_t cnt = 1;

/* Elf is corrupted/truncated, avoid calling elf_strptr. */
if (!elf_rawdata(elf_getscn(elf, ep->e_shstrndx), NULL))
return NULL;

while ((sec = elf_nextscn(elf, sec)) != NULL) {
char *str;

Expand Down

0 comments on commit 7029939

Please sign in to comment.