Fix readrpl temp zlib buffer size

This commit is contained in:
shinyquagsire23 2016-07-13 17:28:40 -07:00
parent 91dde76fbb
commit 9e4bd3a8b5

View File

@ -591,7 +591,7 @@ bool readSection(std::ifstream &fh, elf::SectionHeader &header, std::vector<char
return false;
} else {
std::vector<char> temp;
temp.resize(header.size);
temp.resize(header.size-sizeof(uint32_t));
fh.read(temp.data(), temp.size());
stream.avail_in = header.size;