Fix: memcpy used on potentially overlapping regions
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.c
index 86a114c07ddb0cafc9acd5533d1315bce10d7343..95101178f2f08c7d40bd0ae242ddf79193e45095 100644 (file)
@@ -2869,7 +2869,7 @@ enum client_transmission_status client_flush_outgoing_queue(
                                client->socket);
                to_send_count -= max(ret, 0);
 
                                client->socket);
                to_send_count -= max(ret, 0);
 
-               memcpy(client->communication.outbound.payload.buffer.data,
+               memmove(client->communication.outbound.payload.buffer.data,
                                pv.buffer.data +
                                pv.buffer.size - to_send_count,
                                to_send_count);
                                pv.buffer.data +
                                pv.buffer.size - to_send_count,
                                to_send_count);
This page took 0.031145 seconds and 4 git commands to generate.