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_remove_all() (used in tcp test setup/teardown): handle tcp_bound_pcbs, too 2017-09-05 22:20:44 +02:00
tcp_helper.h test_tcp: de-duplicate test IP addresses, netmask, and ports 2017-03-31 12:01:43 -05:00
test_tcp_oos.c Ensure that unit tests leave the stack in a clean state 2017-08-03 22:28:50 +02:00
test_tcp_oos.h minor: macros should not end with underscore(s) 2016-08-08 21:47:53 +02:00
test_tcp.c tcp: handle segmentation oversize during segment split (bug #52676) 2017-12-18 11:42:13 -06:00
test_tcp.h minor: macros should not end with underscore(s) 2016-08-08 21:47:53 +02:00