[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
large stack variables in shttpd
- Date: Tue, 31 Jul 2007 10:19:14 -0500
- From: joel.sherrill at oarcorp.com (Joel Sherrill)
- Subject: large stack variables in shttpd
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