API for creating null-terminated string data variables

Aperta
#3,703 2 commenti 4 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp

Direzione di ricerca

Start by comparing the existing string-variable logic at linearview.cpp:5845 and tokenizedtextview:1877, then locate other core implementations. Consolidate the behavior into one core implementation and expose an API for plugins, including null-terminated UTF-16 and UTF-32 strings. Done means these call sites use the shared implementation and the public API supports the requested encodings.

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

Descrizione

Component: API Effort: Trivial Impact: Low

Sometimes analysis misses strings, or you're dealing with a format that you know has strings at certain offsets, etc.

There is no API for "create a (null-terminated) string data variable starting at this address". As such, we've reinvented this behavior in a few places in the core (linearview.cpp:5845, tokenizedtextview:1877, and more). So this is really a two part feature request:

  1. Consolidate any areas where we do this into the core into one true implementation.
  2. Make an API available so plugins, etc. don't have to re-implement the whole "keep reading until you find a null terminator then construct the appropriate array type" process.

This API should support UTF-{16,32} strings as well, which should be easy via an optional parameter.

Lingua principale
C++
Stelle
1.3k
Fork
298
Merge medio
5g 5h
PR unite (30g)
19

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.

Altre issue di Vector35/binaryninja-api

Tutte le issue di Vector35/binaryninja-api

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.