Project

General

Profile

Bug #456 ยป 0001-bug-456-fix-for-byte_extract-to-have-array-of-the-ri.patch

Anoop Saldanha, 05/01/2012 03:14 AM

View differences:

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;
}
    (1-1/1)