Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
net-tools
Commits
96b25f18
Commit
96b25f18
authored
Dec 07, 2011
by
Jiri Popelka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buffer overflow in arp (RHBZ #164695)
Steps to Reproduce: 1. arp -s 172.16.1.3 00:80:c8:04:05:06 -D eth0
parent
f1f89328
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
arp.c
arp.c
+1
-1
No files found.
arp.c
View file @
96b25f18
...
...
@@ -243,7 +243,7 @@ static int arp_getdevhw(char *ifname, struct sockaddr *sa, struct hwtype *hw)
struct
ifreq
ifr
;
struct
hwtype
*
xhw
;
str
cpy
(
ifr
.
ifr_name
,
ifname
);
str
ncpy
(
ifr
.
ifr_name
,
ifname
,
IFNAMSIZ
);
if
(
ioctl
(
sockfd
,
SIOCGIFHWADDR
,
&
ifr
)
<
0
)
{
fprintf
(
stderr
,
_
(
"arp: cant get HW-Address for `%s': %s.
\n
"
),
ifname
,
strerror
(
errno
));
return
(
-
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment