Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 1999 10:31:48 +0900 (JST)
From:      t-ishii@tryplanet.com
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   misc/9381: fts_close bug
Message-ID:  <199901080131.KAA10098@mta2.odn.ne.jp>

index | next in thread | raw e-mail


>Number:         9381
>Category:       misc
>Synopsis:       read freed memory
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan  7 17:40:01 PST 1999
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message


help

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