httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <>
Subject [BUG] redirect of index file fails
Date Sat, 01 Feb 1997 07:16:46 GMT
If you use a:

	Redirect /index.html http://foobar/

and then do a:

	GET / HTTP/1.0

you get a SEGV from Apache.  A GET /index.html works (redirects)
fine.  The reason it core dumps is that escape_html doesn't check to be
sure it isn't passed a null pointer, and send_error_response does that
because the "Location" header isn't in r->headers_out at this point.  It
does appear to get added correctly earlier, but that could be some
subrequest that doesn't get copied back.

Anyone already looked at this?  The quick solution to the SEGV is to just
have escape_html check for a null pointer, but that doesn't fix the
problem.  I'm not overly familiar with this part of the code.

View raw message