diff --git a/tools/readrpl/main.cpp b/tools/readrpl/main.cpp index 0f71875..1610547 100644 --- a/tools/readrpl/main.cpp +++ b/tools/readrpl/main.cpp @@ -591,7 +591,7 @@ bool readSection(std::ifstream &fh, elf::SectionHeader &header, std::vector temp; - temp.resize(header.size); + temp.resize(header.size-sizeof(uint32_t)); fh.read(temp.data(), temp.size()); stream.avail_in = header.size;