aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2020-04-03 13:32:34 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2020-04-08 16:26:06 -0700
commit7cf97fda154ba837933eb05be5aeecfb69a06641 (patch)
tree90f13a695239d6d3c8561880304cda37e32625fa /src/util
parentc81aefc5377888c7ac4f29f570249fd6c2fdb352 (diff)
Make asmap Interpreter errors fatal and fuzz test it
Diffstat (limited to 'src/util')
-rw-r--r--src/util/asmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/asmap.cpp b/src/util/asmap.cpp
index 5f3f53c393..f24a382d6e 100644
--- a/src/util/asmap.cpp
+++ b/src/util/asmap.cpp
@@ -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
}