Vector35 / Vector35/binaryninja-api

Enhance the automatic naming of string variables upon loading PDB

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

Nessuno ha ancora preso questa issue.

Component: DebugInfo DebugInfo: PDB Effort: Medium 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: 3.6.4802-dev, 87e27dc3
  • OS: Windows
  • OS Version: 11
  • CPU Architecture: x86_64

Bug Description:
When loading a binary with a PDB file, BN employs unconventional variable names for string variables. These names could be enhanced for improved readability, as the current naming often blurs the distinction between variable names and variable types, leading to confusion. Additionally, this behavior makes it more challenging to copy code from the decompiler to plain C code.

Steps To Reproduce:

  1. Load a binary that have a PDB file
  2. Examine various string variables within the BNDB

Expected Behavior:
I expect BN to give those variables more simpler names. For the example above it could be sTotalAnimals. Essentially, BN could remove any characters from the variable names except for digits and alphabet letters, resulting in clearer naming.

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

Reproduce the naming behavior by loading a binary with a PDB file and examining string variables in the BNDB and decompiler output. Trace the code responsible for imported PDB variable names; done means string variable names are simpler and preserve only letters and digits, such as sTotalAnimals, without harming other names.

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

Valutazione

Stack tecnologico
cpp
Ambito
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.