diff options
| author | Pieter Wuille <[email protected]> | 2020-04-03 13:32:34 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2020-04-08 16:26:06 -0700 |
| commit | 7cf97fda154ba837933eb05be5aeecfb69a06641 (patch) | |
| tree | 90f13a695239d6d3c8561880304cda37e32625fa /src/util/asmap.cpp | |
| parent | Add additional effiency checks to sanity checker (diff) | |
| download | discoin-7cf97fda154ba837933eb05be5aeecfb69a06641.tar.xz discoin-7cf97fda154ba837933eb05be5aeecfb69a06641.zip | |
Make asmap Interpreter errors fatal and fuzz test it
Diffstat (limited to 'src/util/asmap.cpp')
| -rw-r--r-- | src/util/asmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<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 } |