Skip Menu |

This queue is for tickets about the Win32-PEFile CPAN distribution.

Report information
The Basics
Id: 105278
Status: rejected
Priority: 0/
Queue: Win32-PEFile

People
Owner: grandpa [...] cpan.org
Requestors: FASTBEAN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.7007
Fixed in: (no value)



Subject: Unknown version resource info prefix: ri
The error appears with getVersionStrings on managed assemblies. perl -e "use Win32::PEFile;my $pe=Win32::PEFile->new(-file=>'TestFile.dll');my $v=$pe->getVersionStrings()" Unknown version resource info prefix: ri There was a change in the PE/COFF standard from the 8.1 version relating to the resource section ("corrected error in the .rsrc section to properly reflect the order of resource data entries and resource directory strings"). A newer version of the standard which includes this update can be found here: http://download.microsoft.com/download/9/c/5/9c5b2167-8017-4bae-9fde-d599bac8184a/pecoff_v83.docx This issue was found on a 64-bit Windows 7 SP1 machine running Strawberry Perl (portable) 5.22.0.1.
Hi FastBean, can you identify the documentation change you think is the root of the version resource issue in Win32::PEFile? The PECOFF file format specification doesn't actually describe the format of the version resource section in any detail at all. I suspect this may be unrelated to the issue. The area in the code that is throwing up the error is handling resource types in the version info structure. The current Microsoft documentation for that structure (https://msdn.microsoft.com/en-us/library/windows/desktop/ms647001%28v=vs.85%29.aspx) doesn't include any description of a child structure with an ID starting 'ri'. Can you provide source code and a .dll generated from the source that shows the problem please?
No follow up information provided by reporter.