large stack variables in shttpd

Joel Sherrill joel.sherrill at oarcorp.com
Tue Jul 31 15:19:14 UTC 2007


Hi,

In building for the avr and h8300, there were errors
building.  When I investigated, I came across
this in shttpd:

defs.h:#define  URI_MAX         32768           /* Maximum URI 
size            */
log.c:  char    date[64], buf[URI_MAX];
log.c:  char                    date[64], buf[URI_MAX], *q1 = "\"", *q2 
= "\"";
shttpd.c:       char            path[URI_MAX], buf[1024];

So there are 3 places where shttpd puts 32K on the
stack.  Two are for logging.

Any thoughts on what to do?

--joel




More information about the users mailing list