Bug #134 » 0001-fixed-the-incorrect-depth-update-incase-of-offset-is.patch
src/detect-engine-payload.c | ||
---|---|---|
/* update offset with prev_offset if we're searching for
|
||
* matches after the first occurence. */
|
||
SCLogDebug("offset %"PRIu32", prev_offset %"PRIu32, prev_offset, depth);
|
||
SCLogDebug("offset %"PRIu32", prev_offset %"PRIu32, offset, prev_offset);
|
||
offset += prev_offset;
|
||
SCLogDebug("offset %"PRIu32", depth %"PRIu32, offset, depth);
|
src/detect-offset.c | ||
---|---|---|
return -1;
|
||
}
|
||
cd->offset = (uint32_t)atoi(str);
|
||
if (cd->depth != 0) {
|
||
if (cd->depth != 0 && cd->offset != 0) {
|
||
SCLogDebug("depth increased to %"PRIu32" to match pattern len"
|
||
" and offset", cd->content_len + cd->offset);
|
||
cd->depth = cd->content_len + cd->offset;
|
- « Previous
- 1
- 2
- Next »