Skip to content
Snippets Groups Projects
Commit 2064b665 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

kxdpgun: increase string buffer sizes to avoid theoretical overflow

parent 9721af99
No related branches found
No related tags found
No related merge requests found
Pipeline #85197 passed with warnings
......@@ -508,7 +508,7 @@ void *xdp_gun_thread(void *_ctx)
knot_tcp_table_free(tcp_table);
char recv_str[16] = "", lost_str[16] = "", err_str[16] = "";
char recv_str[40] = "", lost_str[40] = "", err_str[40] = "";
if (!(ctx->listen_port & KNOT_XDP_LISTEN_PORT_DROP)) {
(void)snprintf(recv_str, sizeof(recv_str), ", received %lu", local_stats.ans_recv);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment