You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2004/05/26 03:44:25 UTC
DO NOT REPLY [Bug 29216] New: -
Infinite loop while viewing cache stats page
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=29216>.
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=29216
Infinite loop while viewing cache stats page
Summary: Infinite loop while viewing cache stats page
Product: Apache httpd-2.0
Version: 2.0-HEAD
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: mod_ldap
AssignedTo: bugs@httpd.apache.org
ReportedBy: minfrin@sharp.fm
The following code in util_ldap_cache_mgr.c gets stuck in an infinite loop:
for (i=0; i < cache->size; ++i) {
if (cache->nodes[i] != NULL) {
nchains++;
>> for (n = cache->nodes[i]; n != NULL; n = n->next)
totchainlen++;
}
}
In the above case, the variables n, cache->nodes[i] and n->next all point to the
same object, so "n = n->next" causes an infinite loop.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org