igogo-x86 / HexRaysPyTools

IDA Pro plugin which improves work with HexRays decompiler and helps in process of reconstruction structures and classes
1.41k stars 224 forks source link

Fix demangle/decompile errors from unusual data #24

Closed Quentangle closed 5 years ago

Quentangle commented 5 years ago

This comprises of two fixes.

Demangle names

I hit this issue when the program appeared to have two vtables with the same name. The first demangled perfectly, but the second resulted in None without using the recommended way of passing the mask.

??_7World@@6B@   => const World::`vftable'
??_7World@@6B@_0 => const World::`vftable'

Decompiled Function Type

Here I hit a function that was successfully decompiled, but had a type of None, which was then passed to tinfo_t, resulting in a a ValueError. I can try and provide an example if required.