linux-stable/net/tipc
Eric Sesterhenn 3ac90216ab [TIPC] Fix for NULL pointer dereference
This fixes a bug spotted by the coverity checker, bug id #366. If
(mod(seqno - prev) != 1) we set buf to NULL, dereference it in the for
case, and set it to whatever value happes to be at adress 0+next, if it
happens to be non-zero, we even stay in the loop. It seems that the author
intended to break there.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Per Liden <per.liden@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-06-25 23:41:15 -07:00
..
addr.c [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
addr.h [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
bcast.c [TIPC] Fix for NULL pointer dereference 2006-06-25 23:41:15 -07:00
bcast.h [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
bearer.c [TIPC]: Fix simple sparse warnings 2006-03-20 22:36:47 -08:00
bearer.h [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
cluster.c [TIPC]: Avoid compiler warning 2006-03-20 22:38:33 -08:00
cluster.h [TIPC]: Fix simple sparse warnings 2006-03-20 22:36:47 -08:00
config.c [TIPC]: Fix simple sparse warnings 2006-03-20 22:36:47 -08:00
config.h [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
core.c [TIPC]: Use correct upper bound when validating network zone number. 2006-06-25 23:38:00 -07:00
core.h [TIPC]: Allow compilation when CONFIG_TIPC_DEBUG is not set. 2006-06-25 23:40:35 -07:00
dbg.c [TIPC]: Fix simple sparse warnings 2006-03-20 22:36:47 -08:00
dbg.h [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
discover.c [TIPC]: Cleanups 2006-03-20 22:37:52 -08:00
discover.h [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
eth_media.c [TIPC]: Corrected potential misuse of tipc_media_addr structure. 2006-06-25 23:38:29 -07:00
handler.c [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
Kconfig [TIPC] Add help text for TIPC configuration option 2006-01-18 00:45:15 +01:00
link.c [TIPC]: Multicast link failure now resets all links to "nacking" node. 2006-06-25 23:40:01 -07:00
link.h [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
Makefile [TIPC] Initial merge 2006-01-12 14:06:31 -08:00
msg.c [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
msg.h [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
name_distr.c [NET]: Remove redundant NULL checks before [kv]free 2006-04-18 15:57:55 -07:00
name_distr.h [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
name_table.c [TIPC]: Prevent name table corruption if no room for new publication 2006-06-25 23:37:24 -07:00
name_table.h [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
net.c [TIPC]: Cleanups 2006-03-20 22:37:52 -08:00
net.h [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
netlink.c [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
node.c [TIPC]: Cleanups 2006-03-20 22:37:52 -08:00
node.h [TIPC]: Fix simple sparse warnings 2006-03-20 22:36:47 -08:00
node_subscr.c [TIPC]: Fix simple sparse warnings 2006-03-20 22:36:47 -08:00
node_subscr.h [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
port.c [TIPC]: Allow ports to receive multicast messages through native API. 2006-06-25 23:38:58 -07:00
port.h [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
ref.c [TIPC]: Fix simple sparse warnings 2006-03-20 22:36:47 -08:00
ref.h [TIPC]: Fix simple sparse warnings 2006-03-20 22:36:47 -08:00
socket.c [TIPC]: Remove inlines from *.c 2006-03-20 22:37:04 -08:00
subscr.c [TIPC]: Remove inlines from *.c 2006-03-20 22:37:04 -08:00
subscr.h [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
user_reg.c [TIPC]: Fix simple sparse warnings 2006-03-20 22:36:47 -08:00
user_reg.h [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00
zone.c [TIPC]: Fix simple sparse warnings 2006-03-20 22:36:47 -08:00
zone.h [TIPC] Avoid polluting the global namespace 2006-01-18 00:45:16 +01:00