rpms/ncpfs/devel ncpfs-2.2.4-overflow3.patch, NONE, 1.1 ncpfs.spec, 1.19, 1.20

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Oct 4 14:39:54 UTC 2005


Author: stransky

Update of /cvs/dist/rpms/ncpfs/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv27836

Modified Files:
	ncpfs.spec 
Added Files:
	ncpfs-2.2.4-overflow3.patch 
Log Message:
fix for #169080 (buffer overflow detected: ncplogin terminated)

ncpfs-2.2.4-overflow3.patch:
 ncplogin.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE ncpfs-2.2.4-overflow3.patch ---
--- ncpfs-2.2.4/sutil/ncplogin.c.olddd	2005-09-23 18:56:43.000000000 +0200
+++ ncpfs-2.2.4/sutil/ncplogin.c	2005-10-04 16:23:07.000000000 +0200
@@ -167,7 +167,7 @@
 
                 /* we DID check in main that -V has been specified !*/
                 memset(tmpNWPath,0,sizeof(tmpNWPath));
-                strncpy(tmpNWPath,sizeof(tmpNWPath)-1,(info->remote_path));
+                strncpy(tmpNWPath,info->remote_path,sizeof(tmpNWPath)-1);
                 if (info->root_path) {
                         strncat(tmpNWPath,"/",sizeof(tmpNWPath)-strlen(tmpNWPath)-1);
                         strncat(tmpNWPath,info->root_path,sizeof(tmpNWPath)-strlen(tmpNWPath)-1);


Index: ncpfs.spec
===================================================================
RCS file: /cvs/dist/rpms/ncpfs/devel/ncpfs.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- ncpfs.spec	31 Jul 2005 16:14:10 -0000	1.19
+++ ncpfs.spec	4 Oct 2005 14:39:51 -0000	1.20
@@ -1,7 +1,7 @@
 Summary: Utilities for the ncpfs filesystem, a NetWare client for Linux.
 Name: ncpfs
 Version:  2.2.4
-Release: 9
+Release: 10
 License:  GPL
 Source: http://ftp.cvut.cz/ncpfs/ncpfs-%{version}.tar.gz
 Patch: ncpfs-2.2.3-fix.patch
@@ -12,6 +12,7 @@
 Patch5: ncpfs-2.2.4-getuid.patch
 Patch6: ncpfs-2.2.4-gcc4.patch
 Patch7: ncpfs-2.2.4-overflow2.patch
+Patch8: ncpfs-2.2.4-overflow3.patch
 Group: Applications/System
 Requires: ipxutils
 Buildroot: %{_tmppath}/%{name}-%{version}-root
@@ -49,6 +50,7 @@
 %patch5 -p1 -b .nogetuid
 %patch6 -p1 -b .gcc4
 %patch7 -p1 -b .root_path
+%patch8 -p1 -b .overflow3
 
 %build
 %ifarch s390 s390x
@@ -119,6 +121,9 @@
 %{_mandir}/man8/ipx*
 
 %changelog
+* Tue Oct 4 2005 Martin Stransky <stransky at redhat.com> 2.2.4-10
+- fix for #169080 (buffer overflow detected: ncplogin terminated)
+
 * Sun Jul 31 2005 Florian La Roche <laroche at redhat.com>
 - package mount.ncp.8
 




More information about the fedora-cvs-commits mailing list