summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2019-06-17 23:47:32 -0400
committerBrian Potchik <brian@vector35.com>2019-06-17 23:47:32 -0400
commita37745be0353874990a953c956059b9d8953f7af (patch)
tree1561f961e9332d27242ae6e35894197eaa4e45e7 /python
parent6ca3df465034dac90fea2fb50ca3cb418e98e0a0 (diff)
Fix string return value when python BinaryView::get_load_settings_for_data is not defined.
Diffstat (limited to 'python')
-rw-r--r--python/binaryview.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index 01139176..5744cbf0 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -1054,7 +1054,7 @@ class BinaryView(object):
return cls.get_load_settings_for_data(BinaryView(handle=core.BNNewViewReference(data)))
except:
log.log_error(traceback.format_exc())
- return None
+ return core.BNAllocString("")
@classmethod
def open(cls, src, file_metadata=None):
@@ -4397,14 +4397,14 @@ class BinaryView(object):
``get_comment_at`` returns the address-based comment attached to the given address in this BinaryView
Note that address-based comments are different from function-level comments which are specific to each function.
For more information, see :func:`address_comments`.
-
+
"""
return core.BNGetGlobalCommentForAddress(self.handle, addr)
def set_comment_at(self, addr, comment):
"""
``set_comment_at`` sets a comment for the BinaryView at the address specified
-
+
Note that these are different from function-level comments which are specific to each function.
For more information, see :func:`address_comments`.