mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2026-01-01 22:25:42 +03:00
exhaust: Update interface
- Only use functions in exhaust.h for valid ekeys - Use INVALID_EKEY everywhere (remove dupe END_EXHAUST sentinel)
This commit is contained in:
committed by
Matthew Barr
parent
d75cc809fe
commit
50885f210a
@@ -428,7 +428,7 @@ hs_error_t hs_scan(const hs_database_t *db, const char *data, unsigned length,
|
||||
populateCoreInfo(scratch, rose, scratch->bstate, onEvent, userCtx, data,
|
||||
length, NULL, 0, 0, 0, flags);
|
||||
|
||||
clearEvec(scratch->core_info.exhaustionVector, rose);
|
||||
clearEvec(rose, scratch->core_info.exhaustionVector);
|
||||
|
||||
// Rose program execution (used for some report paths) depends on these
|
||||
// values being initialised.
|
||||
@@ -561,7 +561,7 @@ void init_stream(struct hs_stream *s, const struct RoseEngine *rose) {
|
||||
setStreamStatus(state, 0);
|
||||
roseInitState(rose, state);
|
||||
|
||||
clearEvec((char *)state + rose->stateOffsets.exhausted, rose);
|
||||
clearEvec(rose, state + rose->stateOffsets.exhausted);
|
||||
|
||||
// SOM state multibit structures.
|
||||
initSomState(rose, state);
|
||||
|
||||
Reference in New Issue
Block a user