Re: [Bug-wget] [PATCH] Fix stack overflow with way too many cookies.

2016-08-10 Thread Tim Rühsen
Hi Tobias, likely or not, it is a good catch ! I rated your patch as 'trivial' (it is below the threshold where we have to ask for a FSF copyright assignment), made a few amendments and pushed it. Thanks for your contribution. Regards, Tim On Mittwoch, 10. August 2016 19:09:34 CEST Tobias

[Bug-wget] [PATCH] Fix stack overflow with way too many cookies.

2016-08-10 Thread Tobias Stoeckmann
If wget supports cookies, which is the default, it will eventually sort them based on their domain, path, and name attributes. In order to perform this sorting, quick sort is used. And for this, an array containing pointers to all relevant cookies is constructed on the stack with alloca(). If