rpms/star/devel star-1.5.1-bufferoverflow.patch,NONE,1.1

Ondrej Vasik ovasik at fedoraproject.org
Wed Feb 3 12:44:44 UTC 2010


Author: ovasik

Update of /cvs/pkgs/rpms/star/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22223

Added Files:
	star-1.5.1-bufferoverflow.patch 
Log Message:
add patch

star-1.5.1-bufferoverflow.patch:
 longnames.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE star-1.5.1-bufferoverflow.patch ---
diff -urNp star-1.5.1-orig/star/longnames.c star-1.5.1/star/longnames.c
--- star-1.5.1-orig/star/longnames.c	2009-10-16 00:38:55.000000000 +0200
+++ star-1.5.1/star/longnames.c	2010-02-03 13:36:03.000000000 +0100
@@ -155,7 +155,7 @@ name_to_tcb(info, ptb)
 		if (add)
 			strcatl(ptb->dbuf.t_name, name, "/", (char *)NULL);
 		else
-			strcpy(ptb->dbuf.t_name, name);
+			strncpy(ptb->dbuf.t_name, name, props.pr_maxsname);
 		return (TRUE);
 	}
 



More information about the scm-commits mailing list