Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
b6c0daab
Commit
b6c0daab
authored
Dec 30, 2015
by
tw19881113@gmail.com
Committed by
Stéphane Graber
Nov 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix buffer overflow in ifaddrs.c
jenkins: ok to test Signed-off-by:
Tw
<
tw19881113@gmail.com
>
parent
99e02fe3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ifaddrs.c
src/include/ifaddrs.c
+3
-1
No files found.
src/include/ifaddrs.c
View file @
b6c0daab
...
@@ -473,7 +473,9 @@ static void interpretAddr(struct nlmsghdr *p_hdr, struct ifaddrs **p_links, stru
...
@@ -473,7 +473,9 @@ static void interpretAddr(struct nlmsghdr *p_hdr, struct ifaddrs **p_links, stru
{
{
l_mask
[
i
]
=
0xff
;
l_mask
[
i
]
=
0xff
;
}
}
l_mask
[
i
]
=
0xff
<<
(
8
-
(
l_prefix
%
8
));
if
(
l_prefix
%
8
)
{
l_mask
[
i
]
=
0xff
<<
(
8
-
(
l_prefix
%
8
));
}
makeSockaddr
(
l_entry
->
ifa_addr
->
sa_family
,
(
struct
sockaddr
*
)
l_addr
,
l_mask
,
l_maxPrefix
/
8
);
makeSockaddr
(
l_entry
->
ifa_addr
->
sa_family
,
(
struct
sockaddr
*
)
l_addr
,
l_mask
,
l_maxPrefix
/
8
);
l_entry
->
ifa_netmask
=
(
struct
sockaddr
*
)
l_addr
;
l_entry
->
ifa_netmask
=
(
struct
sockaddr
*
)
l_addr
;
...
...
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