From: Arnaldo Carvalho de Melo Date: Wed, 28 Mar 2007 18:54:32 +0000 (-0700) Subject: [DCCP] getsockopt: Fix DCCP_SOCKOPT_[SEND,RECV]_CSCOV X-Git-Tag: v2.6.21-rc6~74^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39ebc0276bada8bb70e067cb6d0eb71839c0fb08;p=pandora-kernel.git [DCCP] getsockopt: Fix DCCP_SOCKOPT_[SEND,RECV]_CSCOV We were only checking if there was enough space to put the int, but left len as specified by the (malicious) user, sigh, fix it by setting len to sizeof(val) and transfering just one int worth of data, the one asked for. Also check for negative len values. Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller --- Reading git-diff-tree failed