Vector35 / Vector35/binaryninja-api

Confusing behavior of get_type_by_name with NamedTypeReference

Aperta
#2,432 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Component: API Effort: Medium Impact: Medium
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:

  1. test_case.zip
  2. Open any binary (eg. helloworld)
  3. Import types from test_case.h
  4. Execute test_case.py content in console

Expected behavior
BinaryView.get_type_by_name should return NamedTypeReference in all such cases

Screenshots
image

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. 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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.