projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: lttng-elf: wrong error label used by error path
[lttng-tools.git]
/
src
/
common
/
lttng-elf.cpp
diff --git
a/src/common/lttng-elf.cpp
b/src/common/lttng-elf.cpp
index 992410a883d8d4ffa96636f2db612c3f818e9716..23d5cb7f0b9630ab233830e2e99d181ac016ca51 100644
(file)
--- a/
src/common/lttng-elf.cpp
+++ b/
src/common/lttng-elf.cpp
@@
-824,6
+824,12
@@
int lttng_elf_get_symbol_offset(int fd, char *symbol, uint64_t *offset)
}
/* Get the number of symbol in the table for the iteration. */
}
/* Get the number of symbol in the table for the iteration. */
+ if (symtab_hdr.sh_entsize == 0) {
+ DBG("Invalid ELF string table entry size.");
+ ret = LTTNG_ERR_ELF_PARSING;
+ goto free_string_table_data;
+ }
+
sym_count = symtab_hdr.sh_size / symtab_hdr.sh_entsize;
/* Loop over all symbol. */
sym_count = symtab_hdr.sh_size / symtab_hdr.sh_entsize;
/* Loop over all symbol. */
This page took
0.024699 seconds
and
4
git commands to generate.