kern/113961: fts(3): fts_pathlen & fts_namelen should be size_t, not u_short

Ighighi ighighi at gmail.com
Sat Jun 23 10:20:04 UTC 2007


>Number:         113961
>Category:       kern
>Synopsis:       fts(3): fts_pathlen & fts_namelen should be size_t,  not u_short
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 23 10:20:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Ighighi
>Release:        6.2-STABLE
>Organization:
>Environment:
FreeBSD orion 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Jun 22 10:21:38 VET 2007     root at orion:/usr/obj/usr/src/sys/CUSTOM  i386

>Description:
Both fts_pathlen & fts_namelen should be of type size_t, not u_short.
NetBSD & OpenBSD already patched this bug. See:
http://mail-index.netbsd.org/netbsd-bugs/2006/03/28/0014.html
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/gen/fts.c
http://cvsweb.netbsd.org/bsdweb.cgi/src/include/fts.h
http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/gen/fts.c
http://www.openbsd.org/cgi-bin/cvsweb/src/include/fts.h

Maybe some changes documented in the OpenBSD CVS should be applied as well.
>How-To-Repeat:
http://mail-index.netbsd.org/netbsd-bugs/2006/03/28/0014.html
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list