diff options
Diffstat (limited to 'searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.cpp')
-rw-r--r-- | searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.cpp b/searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.cpp index f7c38b54227..845622a68a6 100644 --- a/searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.cpp +++ b/searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.cpp @@ -1,4 +1,4 @@ -// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "stackdumpiterator.h" #include <vespa/vespalib/util/compress.h> @@ -153,9 +153,10 @@ bool SimpleQueryStackDumpIterator::readNext() { break; case ParseItem::ITEM_PURE_WEIGHTED_LONG: { - if (p + sizeof(int64_t) > _bufEnd) return false; - _curr_integer_term = vespalib::nbo::n2h(*reinterpret_cast<const int64_t *>(p)); - p += sizeof(int64_t); + if (p + sizeof(int64_t) > _bufEnd) { + return false; + } + _curr_integer_term = readUint64(p); _currArity = 0; } break; |