Skip to content

remove_auto_segment does not persist  #2601

@endeav0r

Description

@endeav0r

Binary Ninja Version
2.4.2950-dev

Describe the bug
When I call bv.auto_remove_segment, save my bndb, and open it back up, the removed segment reappears.

Additionally the removed segment remains in the feature map, even after refreshing the feature map.

To Reproduce
Steps to reproduce the behavior:

  1. Open a raw binary with “Open with Options.”
  2. Manually put all the parts of the raw binary where they need to be with add_user_segment.
  3. Remove the original segment with auto_remove_segment.
  4. Save bndb
  5. Close Binja
  6. Reopen bndb

Expected behavior
The original segment is gone.

Observed Behavior
The original segment re-appears.

Screenshots
N/A

Version and Platform (required):

  • Binary Ninja: Dev 2.4.2950
  • OS: Ubuntu 20.04
  • Version [e.g. 20.04]

Additional context
Your issue template asks for binary ninja version twice :)

Metadata

Metadata

Assignees

Labels

Component: CoreIssue needs changes to the coreEffort: MediumIssues require < 1 month of workImpact: MediumIssue is impactful with a bad, or no, workaround

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions