Skip to content

Commit

Permalink
Disable is_valid to work around Vector35/binaryninja-api#6254
Browse files Browse the repository at this point in the history
  • Loading branch information
droe committed Dec 22, 2024
1 parent ab25b9e commit 5b80ee5
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,17 @@
from . import objctypes


def is_valid(bv, arg=None):
return bv.arch.name in (
'aarch64',
'x86_64',
#'armv7',
#'x86',
)
# Had to disable is_valid due to spurious exceptions in Binary Ninja Core.
# https://github.com/Vector35/binaryninja-api/issues/6254
# https://github.com/droe/binja-blocks/issues/5
is_valid = None
#def is_valid(bv, arg=None):
# return bv.arch.name in (
# 'aarch64',
# 'x86_64',
# #'armv7',
# #'x86',
# )


_TYPE_ID_SOURCE = "binja-blocks"
Expand Down

0 comments on commit 5b80ee5

Please sign in to comment.