Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
linux
Commits
2aedfd65
Commit
2aedfd65
authored
Feb 19, 2004
by
David Stevens
Committed by
David S. Miller
Feb 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IGMP/MLD]: Validate filter size against optlen.
parent
84f280e9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
net/ipv4/ip_sockglue.c
net/ipv4/ip_sockglue.c
+5
-0
net/ipv6/ipv6_sockglue.c
net/ipv6/ipv6_sockglue.c
+5
-0
No files found.
net/ipv4/ip_sockglue.c
View file @
2aedfd65
...
@@ -631,6 +631,11 @@ int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int opt
...
@@ -631,6 +631,11 @@ int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int opt
kfree
(
msf
);
kfree
(
msf
);
break
;
break
;
}
}
if
(
IP_MSFILTER_SIZE
(
msf
->
imsf_numsrc
)
>
optlen
)
{
kfree
(
msf
);
err
=
-
EINVAL
;
break
;
}
err
=
ip_mc_msfilter
(
sk
,
msf
,
0
);
err
=
ip_mc_msfilter
(
sk
,
msf
,
0
);
kfree
(
msf
);
kfree
(
msf
);
break
;
break
;
...
...
net/ipv6/ipv6_sockglue.c
View file @
2aedfd65
...
@@ -450,6 +450,11 @@ int ipv6_setsockopt(struct sock *sk, int level, int optname, char *optval,
...
@@ -450,6 +450,11 @@ int ipv6_setsockopt(struct sock *sk, int level, int optname, char *optval,
kfree
(
gsf
);
kfree
(
gsf
);
break
;
break
;
}
}
if
(
GROUP_FILTER_SIZE
(
gsf
->
gf_numsrc
)
>
optlen
)
{
kfree
(
gsf
);
retv
=
-
EINVAL
;
break
;
}
retv
=
ip6_mc_msfilter
(
sk
,
gsf
);
retv
=
ip6_mc_msfilter
(
sk
,
gsf
);
kfree
(
gsf
);
kfree
(
gsf
);
...
...
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