diff options
| -rw-r--r-- | view/sharedcache/core/Utility.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/view/sharedcache/core/Utility.cpp b/view/sharedcache/core/Utility.cpp index 515d62c7..591bcba5 100644 --- a/view/sharedcache/core/Utility.cpp +++ b/view/sharedcache/core/Utility.cpp @@ -39,6 +39,9 @@ int64_t readSLEB128(const uint8_t*& current, const uint8_t* end) uint64_t readLEB128(const uint8_t*& current, const uint8_t* end) { + if (current == nullptr) + return -1; + uint64_t result = 0; int bit = 0; do |
