Skip to content

API layer should enforce limits on Variable's index and storage #8215

@bdash

Description

@bdash

Version and Platform (required):

  • Binary Ninja Version: 5.4 Ultimate
  • OS: macOS 26.5
  • CPU Architecture: arm64

Bug Description:
Within core, Variable ends up being stored in a representation that only allocates 20 bits for index and 40 bits for storage. If an API user creates variables with values outside of that range, they'll get unexpected behavior. The API should validate that the provided values are within the acceptable range.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: APIIssue needs changes to the APIImpact: LowIssue is a papercut or has a good, supported workaround
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions