about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2021-12-31 12:08:17 +0100
committerGitHub <noreply@github.com>2021-12-31 12:08:17 +0100
commit6dc8ffc72e562795e36c11e36b2f16d50134981c (patch)
treee67638f4aaba754e5b1f9add5b077d6e23e0bbb3
parent1a62826bb03b2b0f8f6e2c4df3d3370e4c0cb8c2 (diff)
parent93cab84b1fec599f120e31bbed3a1bf513adaf06 (diff)
downloadfocaccia-miasm-6dc8ffc72e562795e36c11e36b2f16d50134981c.tar.gz
focaccia-miasm-6dc8ffc72e562795e36c11e36b2f16d50134981c.zip
Merge pull request #1406 from 0xeb/minor
chore: minor modifications (incl. typos)
-rw-r--r--miasm/core/bin_stream_ida.py2
-rw-r--r--setup.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/miasm/core/bin_stream_ida.py b/miasm/core/bin_stream_ida.py
index 585bea57..15bd9d8b 100644
--- a/miasm/core/bin_stream_ida.py
+++ b/miasm/core/bin_stream_ida.py
@@ -19,7 +19,7 @@ class bin_stream_ida(bin_stream_str):
         for ad in range(l):
             offset = ad + start + self.base_address
             if not is_mapped(offset):
-                raise IOError("not enough bytes")
+                raise IOError(f"not enough bytes @ offset {offset:x}")
             out.append(int_to_byte(get_wide_byte(offset)))
         return b''.join(out)
 
diff --git a/setup.py b/setup.py
index e317877a..52fc6f0a 100644
--- a/setup.py
+++ b/setup.py
@@ -83,7 +83,7 @@ if is_win and is_64bit:
     if not win_force_clang:
         print("Warning: couldn't find a Clang/LLVM installation. Some runtime functions needed by the jitter won't be compiled.")
 
-def buil_all():
+def build_all():
     packages=[
         "miasm",
         "miasm/arch",
@@ -352,5 +352,5 @@ def _write_pkg_file(self, file):
 DistributionMetadata.write_pkg_file = _write_pkg_file
 
 
-buil_all()
+build_all()