Menu

3.91w CantPackException: section size problem

Help
Mike
2014-11-18
2014-11-20
  • Mike

    Mike - 2014-11-18

    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

        File size         Ratio      Format      Name
    

    -------------------- ------ ----------- -----------
    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.

     
  • Mike

    Mike - 2014-11-18

    hello.exe provided as attachment

     
  • László Molnár

    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.

     
    • Mike

      Mike - 2014-11-20

      Thanks!

       

Log in to post a comment.