From 7cf97fda154ba837933eb05be5aeecfb69a06641 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Fri, 3 Apr 2020 13:32:34 -0700 Subject: Make asmap Interpreter errors fatal and fuzz test it --- src/util/asmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/asmap.cpp') diff --git a/src/util/asmap.cpp b/src/util/asmap.cpp index 5f3f53c39..f24a382d6 100644 --- a/src/util/asmap.cpp +++ b/src/util/asmap.cpp @@ -116,7 +116,7 @@ uint32_t Interpret(const std::vector &asmap, const std::vector &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 } -- cgit v1.2.3