retdec icon indicating copy to clipboard operation
retdec copied to clipboard

Suggestion from web: from Ukraine with love

Open PeterMatula opened this issue 7 years ago • 1 comments

Binary sent to us by user through https://retdec.com/.

The original message (:-D): Доброго часу доби! Так, цікавить, цікавить! Ваш декомпілятор дуже високої якості. Він досить добре відновлює структури. Цілком приємний виходить код. Але є і явні недоліки. Ось приклад. Все це, скрізь це звернення до змінних структури! + 104 + 108, це змінні структури адресу, і такого коду половина. Було б куди приємніше звертатися до них за допомогою оператора стрільця ->. А тим більше, що параметри функції видно відмінно! А так, в цілому дуже добре!

Google translate: Good day! Thus, interested, interesting! Your kompylyator very high quality. He recovers well enough structure. It turns out nice code. But there are obvious shortcomings. Here's an example. All this, it always appeals to the changing structure! + 104 + 108, the structure is variable address and the code of the half. It would be much nicer to contact them by using the arrow ->. And the more that function parameters seen great! And, in general, very good!

Basically we should look into better work with structures.

PeterMatula avatar Feb 07 '18 12:02 PeterMatula

@PeterMatula

Rename it into something like "Automatic structure inference is needed. If the same pointer is used with the same set of offsets in different places it is likely a struct., and offsets give out the fields layout. If the same set of offset in used in multiple places, it is likely the same struct type."

KOLANICH avatar Aug 29 '22 13:08 KOLANICH