angr-management icon indicating copy to clipboard operation
angr-management copied to clipboard

Side effect on decompilation when instructions are hooked

Open xxr0ss opened this issue 2 years ago • 1 comments

Description

I'm not quite sure if it's designed or an actual bug. Here's the case:

when call instructions is hooked, image image

and re-decompilation is trigered (say, when decompilation options is toggled) image

Hooked code is missing in decompilation result. the printf() disappears

Steps to reproduce the bug

Open any binary to hook a function call instruction, decompile or re-decompile the function

Environment

angr 9.2.33

Additional context

No response

xxr0ss avatar Jan 10 '23 07:01 xxr0ss

Probably a bug — we will take a look later.

ltfish avatar Jan 10 '23 08:01 ltfish