Vector35 / binaryninja-api

Public API, examples, documentation and issues for Binary Ninja
https://binary.ninja/
MIT License
907 stars 207 forks source link

Crash when saving bndb #3894

Closed Moneyl closed 1 year ago

Moneyl commented 1 year ago

Binary Ninja Version: 3.3.4063-dev Personal, 6dbbe983 Platform: Windows 11 Version 22H2

One of my projects crashes when I try to save it. I emailed the bndb file to binaryninja@vector35.com. This crash happens on 3.3.3996 Personal as well.

Steps to reproduce:

I don't know when this problem started. The project saved fine initially. I realized there was a problem when I opened the project today and found my latest changes from yesterday were gone.

negasora commented 1 year ago

Looks like there's a 0 width enum created that's causing cascading failures in type deserialization. Did you create any funky types via the api?

negasora commented 1 year ago

Crash fixed in 3.3.4067-dev

Moneyl commented 1 year ago

Thank you. I haven't used the API yet, so I don't know how that happened. I only recognize one enum in the project as one I added myself and it has uint32_t as its base. Are updates pushed nightly and/or with a delay? The highest version I see is 3.3.4065-dev Personal.

fuzyll commented 1 year ago

Changes we make are pushed as soon as the build finishes and passes a battery of unit tests. In this specific case, it looks like we forgot to update a unit test and the build failed. But, there should be a build >= 4067 coming out in the next few hours that will contain the fix.

Moneyl commented 1 year ago

Gotcha. It's available now. Can confirm that the bug is fixed on 3.3.4068-dev.