Vector35 / Vector35/binaryninja-api
Cannot read inherited members via TypedDataAccessor
Nessuno ha ancora preso questa issue.
- 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:
- Open this binary with pdb: animals.exe.zip
- At 0x409be0 (Bear::vftable) create a data variable with type
struct Bear::VTable - Run Python: current_data_var["roar"]
- Observe success
- Run Python: current_data_var["describe"]
- 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
- 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 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