From c7cb0365364bd968f878d1b55aa59e453335d310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Moln=C3=A1r?= Date: Fri, 30 Dec 2016 21:31:50 +0100 Subject: [PATCH] fixed data corruption in import handling (issue #32,#34) --- src/pefile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pefile.cpp b/src/pefile.cpp index bebdb511..1090fff1 100644 --- a/src/pefile.cpp +++ b/src/pefile.cpp @@ -997,7 +997,7 @@ unsigned PeFile::processImports0(ord_mask_t ord_mask) // pass 1 unsigned len = strlen(ibuf + *tarr + 2) + 1; memcpy(ppi,ibuf + *tarr + 2,len); ppi += len; - names.add(*tarr,len + 2 + 1); + names.add(*tarr,len + 2); } ppi++;