|
|
@ -310,9 +310,8 @@ static inline void SCACBSEnqueue(StateQueue *q, int32_t state)
|
|
|
|
q->top = 0;
|
|
|
|
q->top = 0;
|
|
|
|
|
|
|
|
|
|
|
|
if (q->top == q->bot) {
|
|
|
|
if (q->top == q->bot) {
|
|
|
|
SCLogCritical("Just ran out of space in the queue. "
|
|
|
|
FatalError("Just ran out of space in the queue. "
|
|
|
|
"Fatal Error. Exiting. Please file a bug report on this");
|
|
|
|
"Fatal Error. Exiting. Please file a bug report on this");
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -324,9 +323,8 @@ static inline int32_t SCACBSDequeue(StateQueue *q)
|
|
|
|
q->bot = 0;
|
|
|
|
q->bot = 0;
|
|
|
|
|
|
|
|
|
|
|
|
if (q->bot == q->top) {
|
|
|
|
if (q->bot == q->top) {
|
|
|
|
SCLogCritical("StateQueue behaving weirdly. "
|
|
|
|
FatalError("StateQueue behaving weirdly. "
|
|
|
|
"Fatal Error. Exiting. Please file a bug report on this");
|
|
|
|
"Fatal Error. Exiting. Please file a bug report on this");
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return q->store[q->bot++];
|
|
|
|
return q->store[q->bot++];
|
|
|
@ -349,9 +347,9 @@ static inline int32_t SCACBSDequeue(StateQueue *q)
|
|
|
|
(q)->top = 0; \
|
|
|
|
(q)->top = 0; \
|
|
|
|
\
|
|
|
|
\
|
|
|
|
if ((q)->top == (q)->bot) { \
|
|
|
|
if ((q)->top == (q)->bot) { \
|
|
|
|
SCLogCritical(SC_ERR_AHO_CORASICK, "Just ran out of space in the queue. " \
|
|
|
|
FatalError("Just ran out of space in the queue. " \
|
|
|
|
"Fatal Error. Exiting. Please file a bug report on this"); \
|
|
|
|
"Fatal Error. Exiting. Please file a bug report on
|
|
|
|
exit(EXIT_FAILURE); \
|
|
|
|
this"); \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
} while (0)
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
|
|
|
|