angr / angr/angr-management

Undefining and redefining code causes overlap in instructions in the graph view

Ouverte
#1,556 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug needs-triage
Langage dominant
Python
Étoiles
1.2k
Forks
131
Merge moyen
1 j 11 h
PR mergées (30 j)
14

Description

### Description

If you undefine code at 2 locations in a function and then redefine in order of their memory location, the disassembly graph view shows instructions that dont belong to the function according to the linear view.

Image
Image
Image

In the above images, according to the linear view, function `main` should end at the instruction at `76e` but the graph view shows that it extends to the instruction at `77c`.

[file.zip](https://github.com/user-attachments/files/24221998/file.zip)

### Steps to reproduce the bug

- Load binary, goto the linear disassembly view of function main.
- Undefine instruction at `773`.
- Undefine instruction at `740` i.e. starting to function main.
- Reload disassembly.
- Re-define code at `740`.
- Re-define code at `773`.

### Environment

_No response_

### Additional context

_No response_

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.