mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
Fix clang address sanitizer errors in unit tests (buffers too small)
This commit is contained in:
parent
0a7db8a9a5
commit
6af213787a
@ -206,7 +206,7 @@ START_TEST(test_tcp_fast_retx_recover)
|
||||
char data3[] = { 9, 10, 11, 12};
|
||||
char data4[] = {13, 14, 15, 16};
|
||||
char data5[] = {17, 18, 19, 20};
|
||||
char data6[] = {21, 22, 23, 24};
|
||||
char data6[TCP_MSS] = {21, 22, 23, 24};
|
||||
ip_addr_t remote_ip, local_ip, netmask;
|
||||
u16_t remote_port = 0x100, local_port = 0x101;
|
||||
err_t err;
|
||||
|
@ -454,7 +454,7 @@ START_TEST(test_tcp_recv_ooseq_FIN_INSEQ)
|
||||
}
|
||||
END_TEST
|
||||
|
||||
static char data_full_wnd[TCP_WND];
|
||||
static char data_full_wnd[TCP_WND + TCP_MSS];
|
||||
|
||||
/** create multiple segments and pass them to tcp_input with the first segment missing
|
||||
* to simulate overruning the rxwin with ooseq queueing enabled */
|
||||
|
Loading…
Reference in New Issue
Block a user