djhenderson / pefile

Automatically exported from code.google.com/p/pefile
Other
0 stars 0 forks source link

Mangled names for managed DLLs containing '<' and '>' are treated as invalid and returns empty names #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open managed DLL with functions containing '<' (i.e. wincorlib.dll)
2. Traverse the Exports list (i.e. like the usage sample code)

What is the expected output? What do you see instead?
Should see the exported functions... but nothing is returned

What version of the product are you using? On what operating system?
Latest Version on Windows 8.x

Please provide any additional information below.
The '<' and '>' characters are used in some mangled function names to signify 
code templates I believe.

Original issue reported on code.google.com by geraldsa...@gmail.com on 16 Jan 2015 at 9:10

GoogleCodeExporter commented 9 years ago
Forgot to add my "fix"... modify the line in pefile.py to:

allowed_function_name = string.lowercase + string.uppercase + string.digits + 
'_?@$()<>'

Original comment by geraldsa...@gmail.com on 16 Jan 2015 at 9:13