aboutsummaryrefslogtreecommitdiff
path: root/nis/nss_nis
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2015-10-06 14:03:35 +0200
committerFlorian Weimer <fweimer@redhat.com>2015-10-06 14:03:35 +0200
commit3670da6bfb1ffd17d9bdce2d31d79656be0991b5 (patch)
treef1992e8d921a4dec8765757a6024d4a7f74d8ff5 /nis/nss_nis
parentf586e1328681b400078c995a0bb6ad301ef73549 (diff)
downloadglibc-3670da6bfb1ffd17d9bdce2d31d79656be0991b5.zip
glibc-3670da6bfb1ffd17d9bdce2d31d79656be0991b5.tar.gz
glibc-3670da6bfb1ffd17d9bdce2d31d79656be0991b5.tar.bz2
nss_nis: Do not call malloc_usable_size [BZ #10432]
This is a namespace violation, and interposed malloc implementations are not required to interpose malloc_usable_size.
Diffstat (limited to 'nis/nss_nis')
-rw-r--r--nis/nss_nis/nis-netgrp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/nis/nss_nis/nis-netgrp.c b/nis/nss_nis/nis-netgrp.c
index 44faab7..5099d25 100644
--- a/nis/nss_nis/nis-netgrp.c
+++ b/nis/nss_nis/nis-netgrp.c
@@ -70,7 +70,6 @@ _nss_nis_setnetgrent (const char *group, struct __netgrent *netgrp)
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);
assert (netgrp->data[len] == '\0');
netgrp->data_size = len;