This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix stack overflow in getaddrinfo with many results


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]