https://github.com/torvalds/linux
Revision e51171019bb0e1f9fb57c25bd2e38ce652eaea27 authored by YOSHIFUJI Hideaki on 29 May 2008, 10:55:05 UTC, committed by YOSHIFUJI Hideaki on 04 June 2008, 19:02:30 UTC
Commit 7cbca67c073263c179f605bdbbdc565ab29d801d ("[IPV6]: Support
Source Address Selection API (RFC5014)") introduced NULL dereference
of asoc to sctp_v6_get_saddr in net/sctp/ipv6.c.
Pointed out by Johann Felix Soden <johfel@users.sourceforge.net>.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
1 parent 7dccf1f
Raw File
Tip revision: e51171019bb0e1f9fb57c25bd2e38ce652eaea27 authored by YOSHIFUJI Hideaki on 29 May 2008, 10:55:05 UTC
[SCTP]: Fix NULL dereference of asoc.
Tip revision: e511710
checkincludes.pl
#!/usr/bin/perl
#
# checkincludes: Find files included more than once in (other) files.
# Copyright abandoned, 2000, Niels Kristian Bech Jensen <nkbj@image.dk>.

foreach $file (@ARGV) {
	open(FILE, $file) or die "Cannot open $file: $!.\n";

	my %includedfiles = ();

	while (<FILE>) {
		if (m/^\s*#\s*include\s*[<"](\S*)[>"]/o) {
			++$includedfiles{$1};
		}
	}
	
	foreach $filename (keys %includedfiles) {
		if ($includedfiles{$filename} > 1) {
			print "$file: $filename is included more than once.\n";
		}
	}

	close(FILE);
}
back to top