Commit 775f258f authored by Helge Deller's avatar Helge Deller Committed by Simon Horman
Browse files

kexec-tools: Fix possible out-of-bounds access in ifdown



Fix a possible out-of-bounds access in function ifdown():

ifdown.c: In function 'ifdown':
ifdown.c:56:4: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation]
   56 |    strncpy(ifr.ifr_name, ifp->if_name, IFNAMSIZ);

Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
parent 470d5c44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment