Project

General

Profile

Feature #344 » 0001-Add-BUG_ON-to-avoid-overruning-AppLayerDetectDirecti.patch

Anoop Saldanha, 03/19/2012 02:23 AM

View differences:

src/app-layer-detect-proto.c
mpm_table[dir->mpm_ctx.mpm_type].AddPattern(&dir->mpm_ctx, cd->content, cd->content_len,
cd->offset, cd->depth, cd->id, cd->id, 0);
BUG_ON(dir->id == ALP_DETECT_MAX);
dir->map[dir->id] = al_proto;
dir->id++;
(1-1/2)