aboutgitcodebugslistschat
path: root/tcp.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-09-12 16:59:40 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-09-12 09:13:59 +0200
commit5ff5d55291d2223c65f889b8eee446b8ed2c551c (patch)
treeadf0978817b5e38caa66de823ee54cec3b5c0857 /tcp.h
parent1f414ed8f0b3101363c1373e338802186eb29b7c (diff)
downloadpasst-5ff5d55291d2223c65f889b8eee446b8ed2c551c.tar
passt-5ff5d55291d2223c65f889b8eee446b8ed2c551c.tar.gz
passt-5ff5d55291d2223c65f889b8eee446b8ed2c551c.tar.bz2
passt-5ff5d55291d2223c65f889b8eee446b8ed2c551c.tar.lz
passt-5ff5d55291d2223c65f889b8eee446b8ed2c551c.tar.xz
passt-5ff5d55291d2223c65f889b8eee446b8ed2c551c.tar.zst
passt-5ff5d55291d2223c65f889b8eee446b8ed2c551c.zip
tcp: Avoid overlapping memcpy() in DUP_ACK handling
When handling the DUP_ACK flag, we copy all the buffers making up the ack frame. However, all our frames share the same buffer for the Ethernet header (tcp4_eth_src or tcp6_eth_src), so copying the TCP_IOV_ETH will result in a (perfectly) overlapping memcpy(). This seems to have been harmless so far, but overlapping ranges to memcpy() is undefined behaviour, so we really should avoid it. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp.h')
0 files changed, 0 insertions, 0 deletions