Actions
Bug #9446
open
VJ
VJ
eve/frame: slide accounting error caused missed records
Bug #9446:
eve/frame: slide accounting error caused missed records
Affected Versions:
Effort:
Difficulty:
Label:
Description
FrameJson() (src/output-json-frame.c, lines 353-358 on main 5c7787ed6) decides whether a TCP frame is ready to log:
int64_t abs_offset = (int64_t)frame->offset + (int64_t)STREAM_BASE_OFFSET(stream);
int64_t win = STREAM_APP_PROGRESS(stream) - abs_offset;
if (!eof && ((frame->len == -1) || (win < frame->len)) && win < 2500) {
... skipping logging
continue;
frame->offsetis absolute:AppLayerFrameNewByPointer()stores the stream slice offset plus the pointer offset.b43dc5a64replacedframe->rel_offsetbyframe->offseton this line but kept the base addition. The other uses in the file were converted. For example,FrameJsonLogOneFrame()logsframe->offsetasstream_offset(line 254).- So
winis short bySTREAM_BASE_OFFSET(stream). Nothing happens while the base is 0. Once the stream has released data, frames fail this check, and they are pruned without ever being logged. - Detection is not affected, so alerts reference frame ids that have no
framerecord.
Actions