Revision 735ce972fbc8a65fb17788debd7bbe7b4383cc62 authored by David S. Miller on 21 June 2008, 05:04:34 UTC, committed by David S. Miller on 21 June 2008, 05:04:34 UTC
As noticed by Gabriel Campana, the kmalloc() length arg
passed in by sctp_getsockopt_local_addrs_old() can overflow
if ->addr_num is large enough.

Therefore, enforce an appropriate limit.

Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 2645a3c
History
File Mode Size
Makefile -rw-r--r-- 335 bytes
compat.c -rw-r--r-- 17.0 KB
compat_mq.c -rw-r--r-- 4.0 KB
ipc_sysctl.c -rw-r--r-- 5.8 KB
ipcns_notifier.c -rw-r--r-- 2.1 KB
mqueue.c -rw-r--r-- 30.1 KB
msg.c -rw-r--r-- 20.8 KB
msgutil.c -rw-r--r-- 2.3 KB
namespace.c -rw-r--r-- 2.5 KB
sem.c -rw-r--r-- 32.7 KB
shm.c -rw-r--r-- 25.4 KB
util.c -rw-r--r-- 24.3 KB
util.h -rw-r--r-- 4.7 KB

back to top