Vector35 / Vector35/binaryninja-api

Cannot read inherited members via TypedDataAccessor

Aperta
#5,172 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Component: API Effort: Trivial Impact: Low
Lingua principale
C++
Stelle
1.3k
Fork
298
Merge medio
5g 5h
PR unite (30g)
19

Descrizione

Version and Platform (required):

  • Binary Ninja Version: 4.0.4911
  • OS: macOS
  • OS Version: 14
  • CPU Architecture: M1

Bug Description:
When using the python api, trying to access inherited structure fields like normal fields fails.

Steps To Reproduce:
Please provide all steps required to reproduce the behavior:

  1. Open this binary with pdb: animals.exe.zip
  2. At 0x409be0 (Bear::vftable) create a data variable with type struct Bear::VTable
  3. Run Python: current_data_var["roar"]
  4. Observe success
  5. Run Python: current_data_var["describe"]
  6. Observe error

Expected Behavior:
I expected all of the members (even the inherited ones) to be usable via the accessor

Additional Information:
Need support for looking up inherited members by name, also what should it return? Just the member or also all of the inherited information? Need to see StructureType.__getitem__ as well as TypedDataAccessor.

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 StructureType.getitem and TypedDataAccessor, using the supplied animals.exe reproduction and the current_data_var["roar"]/current_data_var["describe"] accesses as the entry points. Determine how inherited members should be represented, then verify that inherited names such as "describe" are accessible through the TypedDataAccessor without breaking direct members.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
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
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.