lwip/test/unit/tcp
Joel Cunningham 50a5d85f45 tcp: handle segmentation oversize during segment split (bug #52676)
This fixes a bug in tcp_split_unsent_seg where oversized segments were not
handled during the split, leading to pcb->unsent_oversized and
useg->oversize_left getting out of sync with the split segment

This would result in over-writing the pbuf if another call to tcp_write()
happened after the split, but before the remainder of the split was sent in
tcp_output

Now pcb->unsent_oversized is explicitly cleared (because the remainder at
the tail is never oversized) and useg->oversized_left is cleared after it is
trimmed

This also updates the test_tcp_persist_split unit test to explicitly check for
this case
2017-12-18 11:42:13 -06:00
..
tcp_helper.c
tcp_helper.h
test_tcp_oos.c
test_tcp_oos.h
test_tcp.c tcp: handle segmentation oversize during segment split (bug #52676) 2017-12-18 11:42:13 -06:00
test_tcp.h