git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
862096a
)
net/key/af_key.c: add range checks on ->sadb_x_policy_len
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 27 Sep 2012 22:21:19 +0000
(22:21 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 1 Oct 2012 21:15:06 +0000
(17:15 -0400)
Because sizeof() is size_t then if "len" is negative, it counts as a
large positive value.
The call tree looks like:
pfkey_sendmsg()
-> pfkey_process()
-> pfkey_spdadd()
-> parse_ipsecrequests()
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
No differences found