From 9e4bd3a8b5ad1ec5e663990e1ec2b5b0b5bb9661 Mon Sep 17 00:00:00 2001 From: shinyquagsire23 Date: Wed, 13 Jul 2016 17:28:40 -0700 Subject: [PATCH] Fix readrpl temp zlib buffer size --- tools/readrpl/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;