diff options
| author | kat <kat@vector35.com> | 2023-10-16 15:32:26 -0400 |
|---|---|---|
| committer | kat <kat@vector35.com> | 2023-10-16 15:32:26 -0400 |
| commit | a85a6d8ddb1682238ba6a117000175f496f79293 (patch) | |
| tree | f03986bd805bb57f446fa7bf8033ef53d35d2e6f /binaryreader.cpp | |
| parent | 6b5caca2e66a4de4a352e48ecc2395e2b8128edd (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.cpp | 2 |
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; |
