angr / angr/angr-management

Side effect on decompilation when instructions are hooked

未关闭
#869 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
1.2k
派生
131
平均合并
1 天 11 小时
30 天内合并 PR
14

描述

### Description

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

when call instructions is hooked,
![image](https://user-images.githubusercontent.com/31790712/211484398-fc98b4d9-594b-45ae-9f7b-6b2410e45f95.png)
![image](https://user-images.githubusercontent.com/31790712/211485674-a3a3f654-1778-4368-8e81-d77a649801e1.png)

and re-decompilation is trigered (say, when decompilation options is toggled)
![image](https://user-images.githubusercontent.com/31790712/211485109-5e2128ad-d0b2-4fe6-9fba-9af35ba62457.png)

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_

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。