DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=25550>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=25550

apr_rmm corruption when allocating too much





------- Additional Comments From [EMAIL PROTECTED]  2004-03-16 19:46 -------
I copied that line as is from the source code I have. This is the tar file I 
downloaded for the source: httpd-2.0.40-i686-pc-linux-gnu-rh73.tar.gz
This was the latest source for Linux i686 rh 7.3 I could find.
Having said that though, you are correct, Will, that there should NOT be a * in 
the sizeof statement as I think about it now. So the correct line should read:

if (bestsize > sizeof(struct rmm_block_t) + size ) {

We are basically saying, if we found a block of 'bestsize' that is at least 
enough to hold both the requested memory size 'size' PLUS the 12 bytes, say, 
for rmm_block_t structure, the "housekeeping" information structure, then go 
ahead and allocate the memory.
That is how I understand it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to