diff --git a/src/crypto/equihash.cpp b/src/crypto/equihash.cpp index 3706b0c9e..2bd7b7ada 100644 --- a/src/crypto/equihash.cpp +++ b/src/crypto/equihash.cpp @@ -306,6 +306,7 @@ bool Equihash::BasicSolve(const eh_HashState& base_state, template bool IsProbablyDuplicate(std::shared_ptr indices, size_t lenIndices) { + assert(lenIndices <= MAX_INDICES); bool checked_index[MAX_INDICES] = {false}; bool count_checked = 0; for (int z = 0; z < lenIndices; z++) {