[glibc/f17] + - Revert recent changes to res_send (804630, 835090). + - Fix memcpy args in res_send (#841787).

Jeffrey Law law at fedoraproject.org
Wed Jul 25 20:36:11 UTC 2012


commit cccd1fdc1cce7bcd30359b63b0cc3f4ec9b1e1f2
Author: Jeff Law <law at redhat.com>
Date:   Wed Jul 25 14:36:02 2012 -0600

    +  - Revert recent changes to res_send (804630, 835090).
    +  - Fix memcpy args in res_send (#841787).

 glibc-rh804630.patch |   23 -----------------------
 glibc-rh835090.patch |   30 ------------------------------
 glibc-rh841787.patch |   12 ++++++++++++
 glibc.spec           |   16 +++++++++-------
 4 files changed, 21 insertions(+), 60 deletions(-)
---
diff --git a/glibc-rh841787.patch b/glibc-rh841787.patch
new file mode 100644
index 0000000..331a203
--- /dev/null
+++ b/glibc-rh841787.patch
@@ -0,0 +1,12 @@
+diff -rup a/resolv/res_send.c b/resolv/res_send.c
+--- a/resolv/res_send.c	2010-05-04 05:27:23.000000000 -0600
++++ b/resolv/res_send.c	2012-03-01 12:11:13.065605342 -0700
+@@ -441,7 +441,7 @@ __libc_res_nsend(res_state statp, const
+ 				    malloc(sizeof (struct sockaddr_in6));
+ 			if (EXT(statp).nsaddrs[n] != NULL) {
+ 				memset (mempcpy(EXT(statp).nsaddrs[n],
+-						&statp->nsaddr_list[n],
++						&statp->nsaddr_list[ns],
+ 						sizeof (struct sockaddr_in)),
+ 					'\0',
+ 					sizeof (struct sockaddr_in6)
diff --git a/glibc.spec b/glibc.spec
index 41af0e8..d4551b2 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -28,7 +28,7 @@
 Summary: The GNU libc libraries
 Name: glibc
 Version: %{glibcversion}
-Release: 51%{?dist}
+Release: 52%{?dist}
 # GPLv2+ is used in a bunch of programs, LGPLv2+ is used for libraries.
 # Things that are linked directly into dynamically linked programs
 # and shared libraries (e.g. crt files, lib*_nonshared.a) have an additional
@@ -94,7 +94,6 @@ Patch0027: %{name}-rh564528.patch
 # stap and thus will never be accepted upstream
 Patch0044: %{name}-stap-libm.patch
 
-Patch0063: %{name}-rh835090.patch
 #
 # Patches from upstream
 #
@@ -200,9 +199,6 @@ Patch2058: %{name}-rh823905.patch
 # See http://sourceware.org/ml/libc-alpha/2012-06/msg00074.html
 Patch2059: %{name}-rh767693-2.patch
 
-# Upstream BZ 13027
-Patch2060: %{name}-rh804630.patch
-
 # Upstream BZ 14247
 Patch2061: %{name}-rh827510.patch
 
@@ -212,6 +208,9 @@ Patch2062: %{name}-rh816647.patch
 # Extracted from upstream sources
 Patch2064: %{name}-rh829011.patch
 
+# Upstream BZ 13028
+Patch0065: %{name}-rh841787.patch
+
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Obsoletes: glibc-profile < 2.4
 Obsoletes: nss_db
@@ -496,11 +495,10 @@ popd
 %patch2057 -p1
 %patch2058 -p1
 %patch2059 -p1
-%patch2060 -p1
 %patch2061 -p1
 %patch2062 -p1
-%patch0063 -p1
 %patch2064 -p1
+%patch0065 -p1
 
 # A lot of programs still misuse memcpy when they have to use
 # memmove. The memcpy implementation below is not tolerant at
@@ -1367,6 +1365,10 @@ rm -f *.filelist*
 %endif
 
 %changelog
+* Tue Jul 25 2012 Jeff Law <law at redhat.com> - 2.15.52
+  - Revert recent changes to res_send (804630, 835090).
+  - Fix memcpy args in res_send (#841787).
+
 * Tue Jul 3 2012 Jeff Law <law at redhat.com> - 2.15.51
   - Fix FMA4 detection (#829011)
 


More information about the scm-commits mailing list