binaryninja-api
binaryninja-api copied to clipboard
Using Compile C Source on empty file opens edit segments dialog
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:
- New File
- Compile C Source
- Enter
void main() {}and select a platform - Press Compile
- 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: