From 3670da6bfb1ffd17d9bdce2d31d79656be0991b5 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 6 Oct 2015 14:03:35 +0200 Subject: 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. --- nis/nss_nis/nis-netgrp.c | 1 - 1 file changed, 1 deletion(-) (limited to 'nis/nss_nis') 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; -- cgit v1.1