Vector35 / Vector35/binaryninja-api

Shared Cache / Kernel Cache views should stop using `AddUserSection`

Aperta
#7,069 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

File Format: KernelCache File Format: SharedCache Impact: Low State: Blocked (Issue)
Lingua principale
C++
Stelle
1.3k
Fork
298
Merge medio
5g 5h
PR unite (30g)
19

Descrizione

The Shared Cache / Kernel Cache views currently use AddUserSection when loading images. For example:

https://github.com/Vector35/binaryninja-api/blob/83e8981804afe6e7521ce59de55ab0736fb2a3bf/view/sharedcache/core/MachOProcessor.cpp#L249-L251

This is because the sections need to be persisted in the database.

A side-effect of AddUserSection is that an undo entry is created. This is problematic for performance if the calls happen on a background thread, and it's not clear that it's even desirable. Loading a single image from a shared cache might create 20 sections and thus 20 undo actions.

When an alternative API to AddUserSection is added that allows persistence of sections without creating undo actions, Shared Cache / Kernel Cache should switch to it. This may come as part of https://github.com/Vector35/binaryninja-api/issues/6742.

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 view/sharedcache/core/MachOProcessor.cpp around lines 249-251, then read issue #6742 for the alternative persistence API. Once that API is available, switch the Shared Cache and Kernel Cache view loading paths from AddUserSection; done means persisted sections no longer create undo actions.

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

Valutazione

Stack tecnologico
cpp
Ambito
api, reverse-engineering
Tipo di issue
Refactoring
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.