Date: Sat, 13 May 1995 06:20:01 -0700 From: John Capo <jc@irbs.com> To: freebsd-bugs Subject: bin/399: FtpPasv in libftp returns address of local variable Message-ID: <199505131320.GAA00843@freefall.cdrom.com> In-Reply-To: Your message of Sat, 13 May 1995 08:42:09 -0400 <199505131242.IAA17555@irbs.irbs.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>Number: 399 >Category: bin >Synopsis: FtpPasv in libftp returns address of local variable >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 13 06:20:00 1995 >Originator: John Capo >Organization: IRBS Engineering >Release: FreeBSD 2.0.950418-SNAP i386 >Environment: >Description: Function FtpPasv() in libftp/FtpPasv.c returns address of local char array. >How-To-Repeat: >Fix: *** lib/libftp/FtpPasv.c.orig Tue Apr 25 16:31:06 1995 --- lib/libftp/FtpPasv.c Sat May 13 08:36:11 1995 *************** *** 19,25 **** char * FtpPasv (FTP *ftp) { char *msg; ! String PORT; char *p=PORT; if FtpError(FtpCommand(ftp,"PASV","",227,EOF)) --- 19,25 ---- char * FtpPasv (FTP *ftp) { char *msg; ! static String PORT; char *p=PORT; if FtpError(FtpCommand(ftp,"PASV","",227,EOF)) >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505131320.GAA00843>