Using the UI to change a function's type removes the assigned custom calling convention

Aperta
#8,052 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
cpp

Direzione di ricerca

Reproduce the issue in the Binary Ninja UI using the _localeconv_l function and the apple-arm64-objc-fast-arc-4 calling convention described in the steps. Compare the function type before and after confirming the Change Type dialog; done means the custom calling convention remains present after confirmation.

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

Descrizione

State: Awaiting Triage

Version and Platform (required):

  • Binary Ninja Version: 5.3.9393-dev Ultimate (ae6ee6f5)
  • Edition: Ultimate
  • OS: macOS
  • OS Version: 26.3
  • CPU Architecture: M1

Bug Description:
If a function has a custom calling convention and I right-click and select "Change Type" (or press Y) and then press enter once the dialog box comes up then the custom calling convention is stripped from the function.

Steps To Reproduce:
Please provide all steps required to reproduce the behavior:

  1. Open a copy of DYLD Shared Cache
  2. Wait for initial analysis to finish
  3. Go to _localeconv_l
  4. Edit its function properties and set its calling convention to apple-arm64-objc-fast-arc-4
  5. The function type should change to void* __convention("apple-arm64-objc-fast-arc-4") _localeconv_l(void* arg1 @ x0)
  6. Right-click the function and select "Change Type"
  7. Notice that the function type is correct in the dialog
  8. Press enter to confirm the type
  9. Notice how its type goes back to void* _localeconv_l(void* arg1)

Expected Behavior:
Custom calling conventions should not be stripped when changing the type via the UI.

Binary:
Tested against DYLD Shared Cache for iOS 26.2 for an iPhone 17 Pro Max.

Additional Information:
Didn't test whether this happens when using the Python API to make the changes.

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.