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 41672] New: - Segfault in apr_hashfunc_default in tables/apr_hash.c
Date Wed, 21 Feb 2007 22:42:20 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=41672>.
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=41672

           Summary: Segfault in apr_hashfunc_default in tables/apr_hash.c
           Product: Apache httpd-2
           Version: 2.2.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: julien.perez@epsylonia.net


(gdb) b apr_hashfunc_default
Breakpoint 1 at 0xb7f640f8: file tables/apr_hash.c, line 227.
(gdb) c
Continuing.
[Switching to Thread -1210222912 (LWP 13243)]
Breakpoint 1, apr_hashfunc_default (char_key=0x0, klen=0xbfff7148)
    at tables/apr_hash.c:227
227         if (*klen == APR_HASH_KEY_STRING) {
(gdb) s
228             for (p = key; *p; p++) {
(gdb) s

Program received signal SIGSEGV, Segmentation fault.
apr_hashfunc_default (char_key=0x0, klen=0xbfff7148) at tables/apr_hash.c:228
228             for (p = key; *p; p++) {

problematic code:

    if (*klen == APR_HASH_KEY_STRING) {
        for (p = key; *p; p++) {
            hash = hash * 33 + *p;
        }
        *klen = p - key;
    }
    else {

Happening when key = 0x0 and klen = -1, I still have to study on my side the
business logic part of the 'bug'. Hope it will help

Thx for keeping Apache a great product

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message