[Issues] [apr_memcache 0000065]: Bug in apr_memcache_stats routine
issues at outoforder.cc
issues at outoforder.cc
Mon Oct 23 14:52:04 EDT 2006
The following issue has been SUBMITTED.
======================================================================
http://issues.outoforder.cc/view.php?id=65
======================================================================
Reported By: michelnok
Assigned To:
======================================================================
Project: apr_memcache
Issue ID: 65
Category: Security Issue
Reproducibility: always
Severity: crash
Priority: normal
Status: new
======================================================================
Date Submitted: 10-23-2006 14:52 EDT
Last Modified: 10-23-2006 14:52 EDT
======================================================================
Summary: Bug in apr_memcache_stats routine
Description:
There is a bug in apr_memcache_stats routine.
The code:
apr_memcache_stats_t *ret;
...
ret = apr_pcalloc(p, sizeof(apr_memcache_stats_t *));
is wrong because it allocates memory with size of _pointer_ to
apr_memcache_stats_t structure. But then this memory is used as
_structure_.
The right code should be:
ret = apr_pcalloc(p, sizeof(apr_memcache_stats_t));
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
10-23-06 14:52 michelnok New Issue
======================================================================
More information about the Issues
mailing list