1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Delete trailing space characters

https://github.com/upx/upx/pull/589
	modified:   pefile.cpp
This commit is contained in:
John Reiser 2022-07-26 20:09:16 -07:00 committed by Markus F.X.J. Oberhumer
parent 077793fa5e
commit bfd2153f2b

View File

@ -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();