From bfd2153f2bd84917856f3683b67d71a330e728e1 Mon Sep 17 00:00:00 2001 From: John Reiser Date: Tue, 26 Jul 2022 20:09:16 -0700 Subject: [PATCH] Delete trailing space characters https://github.com/upx/upx/pull/589 modified: pefile.cpp --- src/pefile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pefile.cpp b/src/pefile.cpp index 2023fbed..49a438c9 100644 --- a/src/pefile.cpp +++ b/src/pefile.cpp @@ -2165,10 +2165,10 @@ void PeFile::checkHeaderValues(unsigned subsystem, unsigned mask, //check CLR Runtime Header directory entry if (IDSIZE(PEDIR_COMRT)) throwCantPack(".NET files are not yet supported"); - + if(isection == NULL) throwCantPack("No section was found"); - + if (memcmp(isection[0].name,"UPX",3) == 0) throwAlreadyPackedByUPX();