Vector35 / Vector35/binaryninja-api

TypeLibrary.load_from_file on missing file throws no exception and gives a misleading and inaccurate error in console

Aperta
#6,098 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Component: API Component: Type Libraries Effort: Trivial 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: 4.2.6373

Bug Description:
TypeLibrary.load_from_file('wah') outputs nothing to the python console, and prints the following error in console:
[TypeLibrary.Deserialize] Type library had invalid header: 'wah'

Expected Behavior:
It should throw an OSError on missing file as python usually does, and the warning it prints in typelib code should be more accurate, as that warning is only printed if the file doesn't exist

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 by locating the TypeLibrary.load_from_file entry point and the typelib warning mentioned in the issue. Reproduce the missing-file case with 'wah', then verify that it raises OSError and that the warning accurately describes the missing file; add or run the relevant test if one exists.

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

Valutazione

Stack tecnologico
cpp, python
Ambito
api, reverse-engineering
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.