Vector35 / Vector35/binaryninja-api
Confusing behavior of get_type_by_name with NamedTypeReference
Nessuno ha ancora preso questa issue.
- Lingua principale
- C++
- Stelle
- 1.3k
- Fork
- 298
- Merge medio
- 5g 5h
- PR unite (30g)
- 19
Descrizione
Describe the bug
BinaryView.get_type_by_name sometimes return underlying type of NamedTypeReference instead of itself
To Reproduce
Steps to reproduce the behavior:
- test_case.zip
- Open any binary (eg. helloworld)
- Import types from test_case.h
- Execute test_case.py content in console
Expected behavior
BinaryView.get_type_by_name should return NamedTypeReference in all such cases
Screenshots

Additional context
Binary Ninja Version: 2.3.2787-dev Personal, 2e6e0ce9
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Start with the supplied test_case.zip, test_case.h, and test_case.py reproduction, then trace BinaryView.get_type_by_name for imported NamedTypeReference types. Compare cases where it returns the reference with cases where it returns the underlying type; done means it consistently returns the NamedTypeReference as described in the expected behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, python
- Ambito
- api, reverse-engineering
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100