Bug #456 ยป 0001-bug-456-fix-for-byte_extract-to-have-array-of-the-ri.patch
src/detect-engine.c | ||
---|---|---|
/* this detection engine context belongs to this thread instance */
|
||
det_ctx->tv = tv;
|
||
det_ctx->bj_values = SCMalloc(sizeof(*det_ctx->bj_values) * byte_extract_max_local_id);
|
||
det_ctx->bj_values = SCMalloc(sizeof(*det_ctx->bj_values) * (byte_extract_max_local_id + 1));
|
||
if (det_ctx->bj_values == NULL) {
|
||
return TM_ECODE_FAILED;
|
||
}
|