NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/50665: src/libexec/ftpd/cmds.c:651]: (error) Dead pointer usage.
>Number: 50665
>Category: misc
>Synopsis: src/libexec/ftpd/cmds.c:651]: (error) Dead pointer usage.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 17 09:10:00 +0000 2016
>Originator: David Binderman
>Release: cvs dated 20160116
>Organization:
>Environment:
>Description:
[src/libexec/ftpd/cmds.c:651]: (error) Dead pointer usage. Pointer 'pdir' is dead if it has been assigned '&dir' at line 647.
if (stat(realdir, &dir) == 0)
pdir = &dir;
}
}
pdirwok = 0;
if (pdir != NULL) {
but dir is local only to the previous block:
struct stat dir;
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index