Skip to content

Commit

Permalink
Set offset and size to zero when reading ELF headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 24, 2009
1 parent e4968b2 commit 2b0954d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/fatelf-utils.c
Expand Up @@ -226,6 +226,8 @@ void xread_elf_header(const char *fname, const int fd, const uint64_t offset,
record->byte_order = buf[5];
record->reserved0 = 0;
record->reserved1 = 0;
record->offset = 0;
record->size = 0;

if ((record->word_size != FATELF_32BITS) &&
(record->word_size != FATELF_64BITS))
Expand Down

0 comments on commit 2b0954d

Please sign in to comment.