[PATCH] httpd: don't drop QUERY_STRING when /cgi-bin/index.cgi is used
Denys Vlasenko
vda.linux at googlemail.com
Fri Dec 16 11:19:09 UTC 2011
On Fri, Dec 16, 2011 at 10:13 AM, Peter Korsgaard <jacmet at sunsite.dk> wrote:
>>>>>> "Denys" == Denys Vlasenko <vda.linux at googlemail.com> writes:
>
> >> Denys> Let's just use xstrcpy().
> >>
> >> I don't see any xstrcpy in busybox. Did you perhaps mean xstrdup or
> >> strdupa?
>
> Denys> Oops. I meant xstrdup.
>
> But then we would have to take care to not leak memory, which is a bit
> complicated because of send_file_and_exit() / send_cgi_and_exit().
We implicitly free all memory on exit.
> What is the reason you don't like alloca / strdupa?
I don't know. I guess it will be fewer bytes of code.
--
vda
More information about the busybox
mailing list