about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorNiko Schmidt <itsacoderepo@users.noreply.github.com>2020-04-27 21:42:39 +0200
committerGitHub <noreply@github.com>2020-04-27 21:42:39 +0200
commita9b51a61b19d19925f7f2c614f39d8c55e641426 (patch)
treea66729ebbcec73a4f586b77e7ea2a0593b3966c8
parent0b1f174fe37eb3da13ff09c1be6b97b721da52a4 (diff)
downloadfocaccia-miasm-a9b51a61b19d19925f7f2c614f39d8c55e641426.tar.gz
focaccia-miasm-a9b51a61b19d19925f7f2c614f39d8c55e641426.zip
upck32be vs upck16be
I guess it is a copy & paste error :)
-rw-r--r--miasm/core/bin_stream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm/core/bin_stream.py b/miasm/core/bin_stream.py
index 727a853d..9224053f 100644
--- a/miasm/core/bin_stream.py
+++ b/miasm/core/bin_stream.py
@@ -137,7 +137,7 @@ class bin_stream(object):
         if endianness == LITTLE_ENDIAN:
             return upck16le(data)
         else:
-            return upck32be(data)
+            return upck16be(data)
 
     def get_u32(self, addr, endianness=None):
         """