angr / angr/angr-management

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

Aperta
#1,556 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug needs-triage
Lingua principale
Python
Stelle
1.2k
Fork
131
Merge medio
1g 11h
PR unite (30g)
14

Descrizione

### 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_

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.