From 23319029ca6d36934b15d365f888194f75c6406b Mon Sep 17 00:00:00 2001 From: David Raynor Date: Fri, 18 Oct 2013 12:43:40 -0400 Subject: [PATCH] libclamav: elf cid #11933 & #11934 --- libclamav/elf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libclamav/elf.c b/libclamav/elf.c index 939d16fde..58a4616ad 100644 --- a/libclamav/elf.c +++ b/libclamav/elf.c @@ -197,7 +197,7 @@ static int cli_elf_ph32(cli_ctx *ctx, fmap_t *map, struct cli_exe_info *elfinfo, { struct elf_program_hdr32 *program_hdr = NULL; uint16_t phnum, phentsize; - uint32_t entry, fentry, phoff; + uint32_t entry, fentry = 0, phoff; uint32_t i; uint8_t err; @@ -301,7 +301,7 @@ static int cli_elf_ph64(cli_ctx *ctx, fmap_t *map, struct cli_exe_info *elfinfo, { struct elf_program_hdr64 *program_hdr = NULL; uint16_t phnum, phentsize; - uint64_t entry, fentry, phoff; + uint64_t entry, fentry = 0, phoff; uint32_t i; uint8_t err;