From 7619e273943957b7cfd822f58697860d4a911208 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sat, 6 Sep 2025 12:40:39 -1000 Subject: [PATCH] ETHER: Avoid theoretical buffer overrun defining SIM_ETHER_CAPABILITIES --- sim_ether.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim_ether.c b/sim_ether.c index 59c76a86..77c5bee0 100644 --- a/sim_ether.c +++ b/sim_ether.c @@ -1393,7 +1393,7 @@ static t_bool eth_vde_network_available = FALSE; const char *eth_capabilities(void) { static char capabilities[CBUFSIZE] = ""; - char cap_env[CBUFSIZE]; + char cap_env[2*CBUFSIZE]; if (capabilities[0] != '\0') return capabilities;