Vector35 / Vector35/binaryninja-api

FormInputField::Integer doesn't handle 0n prefix

Aperta
#5,374 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Component: UI Effort: Trivial Impact: Low UI: Dialogs
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.1.5246-dev
  • OS: macOS
  • OS Version: 14
  • CPU Architecture: M1

Bug Description:
The FormInputField APi for Integer fields doesn't respect the 0n1234 convention binja generally uses for numbers, nor does it use hex-by-default conventions either. We should make it match the integer parsing behavior seen elsewhere in the app.

Steps To Reproduce:

  1. Run this python:
fi = IntegerField('int')
get_form_input([fi], 'a')
fi.result
  1. Try to type 0n1234
  2. Observe error box
  3. Type 1234
  4. Observe result is decimal 1234 and not 0x1234

Expected Behavior:
I expected integer form inputs to match the rest of the product

Additional Information:
Likely in mainwindow's interaction handler

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 at the mainwindow interaction handler mentioned in the report and trace how IntegerField input is parsed. Reproduce the issue with the supplied Python snippet, then verify that 0n1234 is accepted and that an unprefixed 1234 follows the product's hex-by-default convention.

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

Valutazione

Stack tecnologico
cpp, python
Ambito
devtools, reverse-engineering
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 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.