Merge pull request #5 from shinyquagsire23/fix-readrpl-zlib-size

Fix readrpl temp zlib buffer size
This commit is contained in:
James 2016-07-14 11:17:13 +01:00 committed by GitHub
commit bcf8b0dbcf

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;