diff --git a/src/torrent.cpp b/src/torrent.cpp index e5a6d72ef..85343df3b 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -7224,7 +7224,7 @@ namespace { if (m_torrent_file->is_merkle_torrent()) { bdecode_node mt = rd.dict_find_string("merkle tree"); - if (mt) + if (mt && mt.string_length() >= 20) { std::vector tree; tree.resize(m_torrent_file->merkle_tree().size());