[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r1098 - in glibc-package/trunk/debian: . patches



Author: barbier
Date: 2006-01-12 20:37:00 +0000 (Thu, 12 Jan 2006)
New Revision: 1098

Added:
   glibc-package/trunk/debian/patches/glibc235-nis-netgrp.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/series
Log:
debian/patches/glibc235-nis-netgrp.diff: New file to fix assertion
 failures with NIS.  (Closes: #322011)


Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog	2006-01-11 13:55:33 UTC (rev 1097)
+++ glibc-package/trunk/debian/changelog	2006-01-12 20:37:00 UTC (rev 1098)
@@ -1,5 +1,7 @@
 glibc (2.3.5-12) UNRELEASED; urgency=low
 
+  * debian/patches/glibc235-nis-netgrp.diff: New file to fix assertion
+    failures with NIS.  (Closes: #322011)
   * Switch to quilt to handle Debian patches.
     - debian/control.in/main: add Build-Depends: quilt.
     - Replace debian/rules.d/dpatch.mk by debian/rules.d/quilt.mk.

Added: glibc-package/trunk/debian/patches/glibc235-nis-netgrp.diff
===================================================================
--- glibc-package/trunk/debian/patches/glibc235-nis-netgrp.diff	2006-01-11 13:55:33 UTC (rev 1097)
+++ glibc-package/trunk/debian/patches/glibc235-nis-netgrp.diff	2006-01-12 20:37:00 UTC (rev 1098)
@@ -0,0 +1,27 @@
+This assertion breaks applications if they redefine malloc/free functions,
+malloc_usable_size may then report wrong values.  This is true for instance
+with bash, whereas bash-static works fine because it does not use its own
+wrapper functions.  See #322011 and merged bugs.
+
+# DP: Dpatch author: Denis Barbier
+# DP: Patch author: Denis Barbier
+# DP: Upstream status: BZ692
+# DP: Date: 2006-01-12
+
+
+Index: glibc-2.3.5/nis/nss_nis/nis-netgrp.c
+===================================================================
+--- glibc-2.3.5.orig/nis/nss_nis/nis-netgrp.c
++++ glibc-2.3.5/nis/nss_nis/nis-netgrp.c
+@@ -76,7 +76,10 @@
+ 	 and the last byte is filled with NUL.  So we can simply
+ 	 use that buffer.  */
+       assert (len > 0);
+-      assert (malloc_usable_size (netgrp->data) >= len + 1);
++      /* Call to malloc_usable_size disabled, this breaks if applications
++	 redefine malloc/free with a different implementation.
++	 This assert is always true, see yp_match.  */ 
++      /* assert (malloc_usable_size (netgrp->data) >= len + 1);*/
+       assert (netgrp->data[len] == '\0');
+ 
+       netgrp->data_size = len;

Modified: glibc-package/trunk/debian/patches/series
===================================================================
--- glibc-package/trunk/debian/patches/series	2006-01-11 13:55:33 UTC (rev 1097)
+++ glibc-package/trunk/debian/patches/series	2006-01-12 20:37:00 UTC (rev 1098)
@@ -100,6 +100,7 @@
 ia64-binutils-libm.diff -p1
 glibc235-dash.diff -p0
 glibc235-leapsecond.diff -p0
+glibc235-nis-netgrp.diff
 localedata/locale-ku_TR.diff -p0
 #localedata/discard-dz_BT.diff	# not needed when complex-collate is applied
 locale/complex-collate.diff



Reply to: