rpms/ypserv/devel ypserv-2.13-zero-buffer.patch, NONE, 1.1 ypserv.spec, 1.24, 1.25

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Mon Jan 9 17:01:42 UTC 2006


Author: cfeist

Update of /cvs/dist/rpms/ypserv/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv5554

Modified Files:
	ypserv.spec 
Added Files:
	ypserv-2.13-zero-buffer.patch 
Log Message:
Synced w/ FC-4

ypserv-2.13-zero-buffer.patch:
 ypxfr.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

--- NEW FILE ypserv-2.13-zero-buffer.patch ---
--- ypserv-2.13/ypxfr/ypxfr.c.zero-buffer	2005-06-23 16:55:09.000000000 -0500
+++ ypserv-2.13/ypxfr/ypxfr.c	2005-06-23 16:55:25.000000000 -0500
@@ -361,7 +361,6 @@ ypxfr (char *map, char *source_host, cha
   struct hostent *h;
   int sock, result;
 
-  memset(&resp_val, '\0', sizeof(resp_val));
   /* Name of the map file */
   if (strlen (path_ypdb) + strlen (target_domain) + strlen (map) + 3 < MAXPATHLEN)
     sprintf (dbName_orig, "%s/%s/%s", path_ypdb, target_domain, map);
@@ -420,6 +419,7 @@ ypxfr (char *map, char *source_host, cha
      server name for the map on the master host. */
   req_nokey.domain = source_domain;
   req_nokey.map = map;
+  memset (&resp_master, '\0', sizeof (ypresp_master));
   if (ypproc_master_2 (&req_nokey, &resp_master, clnt_udp) != RPC_SUCCESS)
     {
       log_msg (clnt_sperror (clnt_udp, "ypproc_master_2"));
@@ -456,6 +456,7 @@ ypxfr (char *map, char *source_host, cha
      for the map on the master host. */
   req_nokey.domain = source_domain;
   req_nokey.map = map;
+  memset (&resp_order, '\0', sizeof (ypresp_order));
   if (ypproc_order_2 (&req_nokey, &resp_order, clnt_udp) != RPC_SUCCESS)
     {
       log_msg (clnt_sperror (clnt_udp, "ypproc_order_2"));


Index: ypserv.spec
===================================================================
RCS file: /cvs/dist/rpms/ypserv/devel/ypserv.spec,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- ypserv.spec	4 Jan 2006 18:16:41 -0000	1.24
+++ ypserv.spec	9 Jan 2006 17:01:39 -0000	1.25
@@ -4,7 +4,7 @@
 Url: http://www.linux-nis.org/nis/ypserv/index.html
 Name: ypserv
 Version: 2.13
-Release: 6.2
+Release: 8
 License: GPL
 Group: System Environment/Daemons
 Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypserv-%{version}.tar.bz2
@@ -21,6 +21,7 @@
 Patch5: ypserv-2.13-pie.patch
 Patch6: ypserv-2.13-yplib-memleak.patch
 Patch7: ypserv-2.13-ypxfr-zeroresp.patch
+Patch8: ypserv-2.13-zero-buffer.patch
 Obsoletes: yppasswd
 BuildRequires: gdbm-devel
 Buildroot: %{_tmppath}/%{name}-root
@@ -51,6 +52,7 @@
 %patch5 -p1 -b .pie
 %patch6 -p1 -b .memleak
 %patch7 -p1 -b .respzero
+%patch8 -p1 -b .zero-buffer
 
 %build
 cp etc/README etc/README.etc
@@ -136,6 +138,9 @@
 %{_includedir}/*/*
 
 %changelog
+* Mon Jan  9 2006 Chris Feist <cfeist at redhat.com> - 2.13-8
+- Fix crash with ypxfr caused by failing to zero out data (bz #161217)
+
 * Wed Jan  4 2006 Jesse Keating <jkeating at redhat.com> - 2.13-6.2
 - rebuilt for new gcc
 




More information about the fedora-cvs-commits mailing list