Make asmap Interpreter errors fatal and fuzz test it

This commit is contained in:
Pieter Wuille
2020-04-03 13:32:34 -07:00
parent c81aefc537
commit 7cf97fda15
2 changed files with 34 additions and 13 deletions

View File

@@ -116,7 +116,7 @@ uint32_t Interpret(const std::vector<bool> &asmap, const std::vector<bool> &ip)
break; // Instruction straddles EOF
}
}
// Reached EOF without RETURN, or aborted (see any of the breaks above).
assert(false); // Reached EOF without RETURN, or aborted (see any of the breaks above) - should have been caught by SanityCheckASMap below
return 0; // 0 is not a valid ASN
}