From t-ishii@tryplanet.com  Thu Jan  7 17:32:19 1999
Received: from mta2.odn.ne.jp (mta2.odn.ne.jp [143.90.131.69])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA09398
          for <freebsd-gnats-submit@freebsd.org>; Thu, 7 Jan 1999 17:32:18 -0800 (PST)
          (envelope-from t-ishii@tryplanet.com)
Received: from smtp12.odn.ne.jp (KMGcc-04p57.ppp.odn.ad.jp [210.231.33.149])
	by mta2.odn.ne.jp (8.8.8+2.7Wbeta7/3.6W/9808281343) with SMTP id KAA10098
	for <freebsd-gnats-submit@freebsd.org>; Fri, 8 Jan 1999 10:31:48 +0900 (JST)
Message-Id: <199901080131.KAA10098@mta2.odn.ne.jp>
Date: Fri, 8 Jan 1999 10:31:48 +0900 (JST)
From: t-ishii@tryplanet.com
Reply-To: t-ishii@tryplanet.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: fts_close bug
X-Send-Pr-Version: 3.2

>Number:         9381
>Category:       misc
>Synopsis:       read freed memory
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan  7 17:40:01 PST 1999
>Closed-Date:    Tue Mar 23 09:39:32 PST 1999
>Last-Modified:  Tue Mar 23 09:40:15 PST 1999
>Originator:     Tomokazu ISHII
>Release:        FreeBSD 2.2.6-RELEASE i386
>Organization:
>Environment:

	

>Description:

/usr/src/lib/libc/gen/fts.c L244-

    /* Free up the stream pointer. */
    free(sp);

    /* Set errno and return. */
    if (!ISSET(FTS_NOCHDIR) && saved_errno) {
        errno = saved_errno;
        return (-1);
    }
    return (0);

  ISSET is
    #define ISSET(opt)  (sp->fts_options & (opt))
                         ^^
And so is RedHatLinux5.2(glibc-2.0.7).

>How-To-Repeat:

	

>Fix:
	
	

--
Tomokazu ISHII
t-ishii@tryplanet.com
I can't use English.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sheldonh 
State-Changed-When: Tue Mar 23 09:39:32 PST 1999 
State-Changed-Why:  
Code changed, originator unavailable for clarification. 
>Unformatted:
