binaryninja-api icon indicating copy to clipboard operation
binaryninja-api copied to clipboard

Using Compile C Source on empty file opens edit segments dialog

Open CouleeApps opened this issue 6 months ago • 6 comments

Version and Platform (required):

  • Binary Ninja Version: 5.1.7400-dev (does not happen on Stable)
  • OS: macOS
  • OS Version: 15.4
  • CPU Architecture: M1

Bug Description: When trying to use Compile C Source on an empty file, I get an Add Memory Region popup with nothing filled. Given I don't know what assembly my source is about to produce, I cannot accurately fill out the dialog's fields. Pressing OK gives me an error and pressing Cancel closes the dialog and makes Compile C Source work?

Steps To Reproduce:

  1. New File
  2. Compile C Source
  3. Enter void main() {} and select a platform
  4. Press Compile
  5. See popup

Expected Behavior: I expected Compile C Source to put my code into the file and not open a dialog I cannot actually fill in.

Screenshots/Video Recording: Image

CouleeApps avatar May 13 '25 19:05 CouleeApps