Security #9160 » 0001-defrag-bsd-trim-all-overlapped-fragments.patch
| 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;
|
||