mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Make asmap Interpreter errors fatal and fuzz test it
This commit is contained in:
parent
c81aefc537
commit
7cf97fda15
2 changed files with 34 additions and 13 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue