upx/upx

Missing executable's info

Ouverte

#140 ouverte le 28 oct. 2017

 (10 commentaires) (0 réaction) (0 personne assignée)C++ (1 279 forks)batch import
help wantedos:Windows

Métriques du dépôt

Stars
 (12 842 étoiles)
Métriques de merge PR
 (Merge moyen 23h 25m) (18 PRs mergées en 30 j)

Description

What's the problem (or question)?

When compressing a windows executable (compiled with go 1.9.1), all the info of the file are erased. By info I mean what you see at the details pane of the file properties: before After the packing we got this: after

What should have happened?

It should keep the info of the executable

Do you have an idea for a solution?

The reason might be the way that the compiling is done. First I'm creating a resource.syso(resource.zip) with the icon, manifest and versioninfo at the root of my project, and then build the executable with Go. Go automatically recognizes the resource and adds it to the exe, but I don't know if it gets packaged normally. If go uses a non standard method of packing, then when upx reconstructs the file it might not know about it.

How can we reproduce the issue?

  1. Get the file (GoCheck.exe.zip)
  2. Look at the details tab of the file's properties
  3. Pack it with UPX
  4. Look at the details again

Please tell us details about your environment.

  • UPX version used (upx --version): 3.9.4, 3.9.1
  • Host Operating System and version: Windows 7 SP1 x64
  • Host CPU architecture: 386
  • Target Operating System and version: Windows All
  • Target CPU architecture: 386

Guide contributeur