[PATCH] resolv/nss_dns/dns-host: Get rid of alloca.

Andreas Schwab schwab@suse.de
Thu Aug 10 15:28:08 GMT 2023


On Aug 10 2023, Joe Simmons-Talbott via Libc-alpha wrote:

>        const char *cp = __res_context_hostalias (ctx, name, tmp, NS_MAXDNAME);

Please use sizeof (tmp).

Ok with that change.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list