rose: assert that program offset is sane

This commit is contained in:
Justin Viiret
2016-04-20 12:41:02 +10:00
committed by Matthew Barr
parent 061068a260
commit 9e0ec02ac9
2 changed files with 1 additions and 4 deletions

View File

@@ -50,9 +50,6 @@ static really_inline
int roseNfaRunProgram(const struct RoseEngine *rose, struct hs_scratch *scratch,
u64a som, u64a offset, ReportID id, const char from_mpv) {
const u32 program = id;
assert(program > 0);
assert(program % ROSE_INSTR_MIN_ALIGN == 0);
const size_t match_len = 0; // Unused in this path.
const char in_anchored = 0;
const char in_catchup = 1;