[PATCH] Fix stack overflow in getaddrinfo with many results
Siddhesh Poyarekar
siddhesh@redhat.com
Wed Apr 3 15:35:00 GMT 2013
On Wed, Apr 03, 2013 at 02:57:37PM +0200, Andreas Schwab wrote:
> Since struct sort_results is rather big this can overflow the stack
> pretty fast.
>
> Andreas.
>
> [BZ #15330]
> * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
> order arrays from heap if bigger than alloca cutoff.
Looks fine to me.
Siddhesh
More information about the Libc-alpha
mailing list