Actions
Bug #1315
closedtrans_q should not have hardcoded size
Affected Versions:
Effort:
Difficulty:
Label:
Description
The PacketQueue trans_q256 in suricata.h is always indexed by tv->inq->id, where Tmq* inq->id is assigned in tm-queues.c. inq->id is not checked to be not larger than TMC_MAX_QUEUES. So suricata.h should define trans_q as:
PacketQueue trans_q[TMC_MAX_QUEUES];
This will require moving the #define for TMC_MAX_QUEUES to tm-queues.h, which is where is should really be anyway.
Updated by Victor Julien over 6 years ago
- Is duplicate of Optimization #947: dynamic allocation of thread queues added
Actions