apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r751657 - /apr/apr/trunk/memory/unix/apr_pools.c
Date Mon, 09 Mar 2009 12:09:07 GMT
Author: rpluem
Date: Mon Mar  9 12:09:06 2009
New Revision: 751657

URL: http://svn.apache.org/viewvc?rev=751657&view=rev
Log:
* Need to use pool_allocator as base instead of node as the endpointer is
  out of bounds otherwise.

Modified:
    apr/apr/trunk/memory/unix/apr_pools.c

Modified: apr/apr/trunk/memory/unix/apr_pools.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/memory/unix/apr_pools.c?rev=751657&r1=751656&r2=751657&view=diff
==============================================================================
--- apr/apr/trunk/memory/unix/apr_pools.c (original)
+++ apr/apr/trunk/memory/unix/apr_pools.c Mon Mar  9 12:09:06 2009
@@ -941,7 +941,7 @@
         node->next  = NULL;
         node->index = 1;
         node->first_avail = (char *)node + APR_MEMNODE_T_SIZE;
-        node->endp = (char *)node + MIN_ALLOC;
+        node->endp = (char *)pool_allocator + MIN_ALLOC;
     }
     else if ((node = allocator_alloc(pool_allocator,
                                      MIN_ALLOC - APR_MEMNODE_T_SIZE)) == NULL) {



Mime
View raw message