summaryrefslogtreecommitdiff
path: root/binaryreader.cpp
diff options
context:
space:
mode:
authorkat <kat@vector35.com>2023-10-16 15:32:26 -0400
committerkat <kat@vector35.com>2023-10-16 15:32:26 -0400
commita85a6d8ddb1682238ba6a117000175f496f79293 (patch)
treef03986bd805bb57f446fa7bf8033ef53d35d2e6f /binaryreader.cpp
parent6b5caca2e66a4de4a352e48ecc2395e2b8128edd (diff)
Fix an issue with BinaryReader::ReadPointer that occured when reading pointers smaller than 64 bits
Diffstat (limited to 'binaryreader.cpp')
-rw-r--r--binaryreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/binaryreader.cpp b/binaryreader.cpp
index 536f55c9..c0929538 100644
--- a/binaryreader.cpp
+++ b/binaryreader.cpp
@@ -111,7 +111,7 @@ uint64_t BinaryReader::ReadPointer()
size_t addressSize = m_view->GetAddressSize();
if (addressSize > 8 || addressSize == 0)
throw ReadException();
- uint64_t result;
+ uint64_t result = 0;
if (!BNReadData(m_stream, &result, addressSize))
throw ReadException();
return result;