apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Kelleman <keith.kelle...@oracle.com>
Subject bug in apr_rmm_realloc
Date Thu, 04 Aug 2005 20:33:47 GMT
Possible bug in apr_rmm_realloc.   When calculating the value of
blk, it looks like it should be:

blk = (rmm_block_t*)((char*)rmm->base + old - RMM_BLOCK_SIZE);

instead of

blk = (rmm_block_t*)((char*)rmm->base + old);

otherwise blk is pointing at the caller's data.

Keith

Mime
View raw message