This file claims to have 0x5154 bytes of "image" in its "NT" header. But in its last section header it seems that the file has 0x5200 bytes. UPX can't decide which value to beleive, so it gives up.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Testing out the packer against a simple hello world example compiled in VS 2013 Express C++, and I get the following (on Win7 64-bit):
C:\Users\mike\Documents\self-training\packers2>upx hello.exe
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2013
UPX 3.91w Markus Oberhumer, Laszlo Molnar & John Reiser Sep 30th 2013
-------------------- ------ ----------- -----------
upx: hello.exe: CantPackException: section size problem
Packed 1 file: 0 ok, 1 error.
Tried using several of the win32 switches, but no luck there either. I can provide the code/.exe if needed.
hello.exe provided as attachment
This file claims to have 0x5154 bytes of "image" in its "NT" header. But in its last section header it seems that the file has 0x5200 bytes. UPX can't decide which value to beleive, so it gives up.
Thanks!