peres returns corrupted version and DEBUG lines
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pev (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
### Setup
Ubuntu 22.04.3 LTS distributed by Canonical on the Msft Store running on WSL2
```
Description: Ubuntu 22.04.3 LTS
Release: 22.04
pev:
Installed: 0.81-7
Candidate: 0.81-7
Version table:
*** 0.81-7 500
500 http://
100 /var/lib/
```
### Repro
1. Open a Ubuntu 22.04.3 LTS prompt
2. `sudo apt install pev`
3. `peres -v /mnt/c/
### Result
```
DEBUG: id=0xa0, dataOffset=
DEBUG: Length=3, String=MUI
DEBUG: id=0x1, dataOffset=
DEBUG: id=0x409, dataOffset=0x80
DEBUG: CodePage=0, OffsetToData=
DEBUG: id=0x10, dataOffset=
DEBUG: id=0x1, dataOffset=
DEBUG: id=0x409, dataOffset=0x90
DEBUG: CodePage=0, OffsetToData=
File Version: 65263.1213.1.0
Product Version: 10.0.19041.3393
```
All the DEBUG lines are unexpected and should not appear.
Both the file and product versions are invalid.
You can do step 3 on any PE file from Microsoft or privately compiled. The file and product versions will be incorrect and unexpected DEBUG lines will appear.
### Expected
```
File Version: 10.0.19041.3393
```
The older package 0.80-4build1 from Ubuntu 20.04.6 LTS works correctly.