diff options
| author | Peter LaFosse <peter@vector35.com> | 2019-09-28 15:27:25 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2019-09-28 15:52:35 -0400 |
| commit | fa6d1a1998dc7295952036ea84c141cb20bca920 (patch) | |
| tree | 3559efa34e2d4eb91f1c318968a89d04d5fc2f82 /python/binaryview.py | |
| parent | 052b1ea7871c3bfd780a73bcac942db54c95422e (diff) | |
Fix create_tag api
Diffstat (limited to 'python/binaryview.py')
| -rw-r--r-- | python/binaryview.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index 4e7b46a7..d9d8f0b8 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -3484,13 +3484,13 @@ class BinaryView(object): :rtype: Tag :Example: - >>> tt = bv.tag_types["Crabby Functions"] - >>> tag = bv.create_tag(tt, "Get Crabbed") + >>> tt = bv.tag_types["Crashes"] + >>> tag = bv.create_tag(tt, "Null pointer dereference", True) >>> bv.add_user_data_tag(here, tag) >>> """ - tag = Tag(core.BNCreateTag(type.handle, data, user)) - core.BNAddTag(self.handle, tag.handle) + tag = Tag(core.BNCreateTag(type.handle, data)) + core.BNAddTag(self.handle, tag.handle, user) return tag @property @@ -3572,7 +3572,7 @@ class BinaryView(object): if tag.type == type and tag.data == data: return - tag = self.create_tag(type, data) + tag = self.create_tag(type, data, True) core.BNAddUserDataTag(self.handle, addr, tag.handle) return tag @@ -3614,7 +3614,7 @@ class BinaryView(object): if tag.type == type and tag.data == data: return - tag = self.create_tag(type, data) + tag = self.create_tag(type, data, False) core.BNAddAutoDataTag(self.handle, addr, tag.handle) return tag |
