lwip/test/unit
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
..
api test_sockets: disable test for calling recv() after remote closure 2017-11-20 14:17:59 -06:00
arch
core Fix a corner case of double-free in the heap 2017-09-25 22:29:02 +02:00
dhcp test_dhcp: set link up on net_test netif 2017-11-08 14:42:28 -06:00
etharp test_etharp.c: IANA_HWTYPE_ETHERNET -> LWIP_IANA_HWTYPE_ETHERNET 2017-08-08 12:22:19 +02:00
ip4 Ensure that unit tests leave the stack in a clean state 2017-08-03 22:28:50 +02:00
mdns
mqtt Ensure that unit tests leave the stack in a clean state 2017-08-03 22:28:50 +02:00
tcp tcp: handle segmentation oversize during segment split (bug #52676) 2017-12-18 11:42:13 -06:00
udp Ensure that unit tests leave the stack in a clean state 2017-08-03 22:28:50 +02:00
Filelists.mk
lwip_check.h Fix unit tests under linux 2017-08-04 06:17:21 +02:00
lwip_unittests.c Fix unit tests under linux 2017-08-04 06:17:21 +02:00
lwipopts.h Added two simple unit tests for illegal calls to mem_free() 2017-09-25 21:38:00 +02:00