The offset calculation belongs to the format plug-in itself

This commit is contained in:
Pierre Pronchery 2011-08-31 16:16:15 +00:00
parent 6bfdb88736
commit 945dfe6232

View File

@ -527,7 +527,7 @@ static int _elf_decode64(FormatPlugin * format)
helper->decode(helper->format,
&shstrtab[shdr[i].sh_name],
shdr[i].sh_offset, shdr[i].sh_size,
base);
base + shdr[i].sh_offset);
}
free(shstrtab);
free(shdr);