Vector35 / Vector35/binaryninja-api
FormInputField::Integer doesn't handle 0n prefix
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.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:
- Run this python:
fi = IntegerField('int')
get_form_input([fi], 'a')
fi.result
- Try to type 0n1234
- Observe error box
- Type 1234
- 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
- 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 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