Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Nov 2004 20:54:18 -0800 (PST)
From:      Doug White <dwhite@gumbysoft.com>
To:        Colin Percival <cperciva@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern vfs_export.c
Message-ID:  <20041128205113.W40277@carver.gumbysoft.com>
In-Reply-To: <200411281916.iASJG0RS029275@repoman.freebsd.org>
References:  <200411281916.iASJG0RS029275@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 28 Nov 2004, Colin Percival wrote:

> cperciva    2004-11-28 19:16:00 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/kern             vfs_export.c
>   Log:
>   Check that saddr->sa_family is a sensible value before using it.
>
>   Reported by:    Bryan Fulton and Ted Unangst, Coverity, Inc.
>   Found by:       The SWAT analysis tool

This does not compile (on sparc64 at least):

cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I.
-I/a/src/sys -I/a/src/sys/contrib/dev/acpica -I/a/src/sys/contrib/altq
-I/a/src/sys/contrib/ipfilter -I/a/src/sys/contrib/pf
-I/a/src/sys/contrib/dev/ath -I/a/src/sys/contrib/dev/ath/freebsd
-I/a/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common
-finline-limit=15000 --param inline-unit-growth=100 --param
large-function-growth=1000  -mcmodel=medlow -msoft-float -ffreestanding
-Werror  /a/src/sys/kern/vfs_export.c
/a/src/sys/kern/vfs_export.c: In function `vfs_hang_addrlist':
/a/src/sys/kern/vfs_export.c:132: error: `SA_MAX' undeclared (first use in
this function)
/a/src/sys/kern/vfs_export.c:132: error: (Each undeclared identifier is
reported only once
/a/src/sys/kern/vfs_export.c:132: error: for each function it appears in.)

I can't find a reference to an SA_MAX constant. Did you mean AF_MAX?

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite@gumbysoft.com          |  www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041128205113.W40277>