Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hang when parsing a type string for an unpulled type in an attached type archive in a remote project #5956

Open
negasora opened this issue Sep 26, 2024 · 1 comment
Labels
Component: Type Archives Impact: Medium Issue is impactful with a bad, or no, workaround Type: Crash Issue is a crash or deadlock

Comments

@negasora
Copy link
Member

Repro steps:

  1. Open a bndb in a remote project
  2. Run the following in the python console:
import tempfile

with tempfile.TemporaryDirectory() as td:
    print(td)
    ta = TypeArchive.create(path=str(f'{td}/archive.bnta'), platform=bv.platform)
    assert ta is not None
    bv.attach_type_archive(ta)
    ta.add_type("archive_type", binaryninja.Type.int(4))
    print(bv.parse_type_string('archive_type asd;'))
@negasora negasora added Type: Crash Issue is a crash or deadlock Impact: Medium Issue is impactful with a bad, or no, workaround Component: Type Archives labels Sep 26, 2024
@CouleeApps
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Type Archives Impact: Medium Issue is impactful with a bad, or no, workaround Type: Crash Issue is a crash or deadlock
Projects
None yet
Development

No branches or pull requests

2 participants