Re: mod_proxy and HTTP 302 response

Graham Leggett <[email protected]>
Newsgroups gmane.comp.apache.mod-proxy
Message-ID <[email protected]>
Brett Hutley wrote:

> Kinda works like strdup() as far as I can see... (although I guess with 
> a memory pool)...

>    len = strlen(s) + 1;
>    res = apr_palloc(a, len);
>    memcpy(res, s, len);

The apr_palloc() will either allocate enough memory for a (potentially 
very large) string, or it will segfault (to my knowledge) and fail safe. 
Thus the memcpy will only occur if a buffer is created sufficiently 
large enough to hold the string, thus no overflow that I can see.

Again - can someone else check...?

Regards,
Graham
-- 
-----------------------------------------
[email protected] 
	"There's a moon
					over Bourbon Street
						tonight..."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.