summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elf.c b/lib/elf.c
index 888169f5..397c8f3f 100644
--- a/lib/elf.c
+++ b/lib/elf.c
@@ -468,7 +468,7 @@ int lookupSymbol(const char *buffer, const int total_file_size, const char *symn
Elf64_Ehdr *ehdr = (Elf64_Ehdr*) &buffer[0];
if (total_file_size < rdOff64(le, ehdr->e_shoff)
+ rdHalf64(le, ehdr->e_shnum)*sizeof(Elf64_Shdr)) {
- fprintf(stderr, "File too small for %d sections from offset %llu\n",
+ fprintf(stderr, "File too small for %d sections from offset %" PRIu64 "\n",
rdHalf64(le, ehdr->e_shnum), rdOff64(le, ehdr->e_shoff));
exit(EXIT_FAILURE);
}