Project

General

Profile

Security #9160 » 0001-defrag-bsd-trim-all-overlapped-fragments.patch

Jason Ish, 10/05/2026 05:15 PM

View differences:

src/defrag.c
}
ltrim = prev_end - frag_offset;
if ((next != NULL) && (frag_end > next->offset)) {
next->ltrim = frag_end - next->offset;
for (Frag *n = next; n != NULL && frag_end > n->offset;
n = IP_FRAGMENTS_RB_NEXT(n)) {
if (frag_end >= n->offset + n->data_len)
n->skip = 1;
else
n->ltrim = frag_end - n->offset;
}
goto insert;
......
}
}
if ((next != NULL) && (frag_end > next->offset)) {
next->ltrim = frag_end - next->offset;
for (Frag *n = next; n != NULL && frag_end > n->offset;
n = IP_FRAGMENTS_RB_NEXT(n)) {
if (frag_end >= n->offset + n->data_len)
n->skip = 1;
else
n->ltrim = frag_end - n->offset;
}
goto insert;
(1-1/2)