1 This assertion breaks applications if they redefine malloc/free functions,
2 malloc_usable_size may then report wrong values. This is true for instance
3 with bash, whereas bash-static works fine because it does not use its own
4 wrapper functions. See #322011 and merged bugs.
6 # DP: Dpatch author: Denis Barbier
7 # DP: Patch author: Denis Barbier
8 # DP: Upstream status: BZ692
13 nis/nss_nis/nis-netgrp.c | 5 ++++-
14 1 file changed, 4 insertions(+), 1 deletion(-)
16 --- a/nis/nss_nis/nis-netgrp.c
17 +++ b/nis/nss_nis/nis-netgrp.c
19 and the last byte is filled with NUL. So we can simply
22 - assert (malloc_usable_size (netgrp->data) >= len + 1);
23 + /* Call to malloc_usable_size disabled, this breaks if applications
24 + redefine malloc/free with a different implementation.
25 + This assert is always true, see yp_match. */
26 + /* assert (malloc_usable_size (netgrp->data) >= len + 1); */
27 assert (netgrp->data[len] == '\0');
29 netgrp->data_size = len;