Project

General

Profile

Actions

Task #6266

closed

Task #6262: tracking: reduce stack usage

mpm/ac-bs: reduce stack usage

Added by Victor Julien over 1 year ago. Updated 12 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Effort:
Difficulty:
Label:

Description

As #6263, but for ac-bs. Key is this

#define STATE_QUEUE_CONTAINER_SIZE 65536

typedef struct StateQueue_ {
    int32_t store[STATE_QUEUE_CONTAINER_SIZE];
    int top;
    int bot;
} StateQueue;

static inline void SCACBSCreateFailureTable(MpmCtx *mpm_ctx)
{
    ...
    StateQueue q;
    memset(&q, 0, sizeof(StateQueue));


Related issues 1 (0 open1 closed)

Related to Suricata - Task #6586: mpm/ac-bs: remove implementationClosedVictor JulienActions
Actions

Also available in: Atom PDF