httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25550] - apr_rmm corruption when allocating too much
Date Tue, 16 Mar 2004 19:46:19 GMT
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 eabouzou@yahoo.com  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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message