Skip to content

Binary Ninja dev channel raises warnings when creating comments #34

@austin-ralls-cs

Description

@austin-ralls-cs

banjo/binaryview.py

Lines 110 to 122 in 5065477

for try_item in method.code.tries:
self.bv.set_comment_at(
off + try_item.start_addr * 2,
f":try_start_{try_item.start_addr:x}",
)
self.bv.set_comment_at(
off + try_item.start_addr * 2 + try_item.insn_count * 2,
f":try_end_{try_item.start_addr+try_item.insn_count:x}",
)
self.bv.set_comment_at(
off + try_item.start_addr * 2 + try_item.insn_count * 2,
f"{try_item.handler}",
)

There are no issues in 5.0.7648 (e79b961f) but there are warnings in 5.1.7851-dev. From a quick glance, it seems like it still adds comments (for now) even with warnings.

Reported by @utkonos in binja Slack. Mason said that workflows are the recommend way to do this, but Vector35/binaryninja-api#7051 was created for the current method (I think?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    binaryninjaIssue about Binary Ninja integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions