httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54560] New: Potential segfault on return from ap_server_root_relative
Date Wed, 13 Feb 2013 21:11:45 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54560

            Bug ID: 54560
           Summary: Potential segfault on return from
                    ap_server_root_relative
           Product: Apache httpd-2
           Version: 2.4.1
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Runtime Config
          Assignee: bugs@httpd.apache.org
          Reporter: mike.rumph@oracle.com
    Classification: Unclassified

The ap_process_fnmatch_configs function in server/config.c has the following
code:

    if ((ap_server_pre_read_config->nelts
        || ap_server_post_read_config->nelts)
        && !(strcmp(fname, ap_server_root_relative(ptemp,
SERVER_CONFIG_FILE)))) {
        apr_finfo_t finfo;

        if (apr_stat(&finfo, fname, APR_FINFO_LINK | APR_FINFO_TYPE, ptemp) !=
APR_SUCCESS)
            return NULL;
    }

The ap_server_root_relative function could potentially return NULL which would
result in a segmentation fault within strcmp.

This bug is related to the following bugs:
- https://issues.apache.org/bugzilla/show_bug.cgi?id=52816 
- https://issues.apache.org/bugzilla/show_bug.cgi?id=39722 

This code is first seen in 2.4.1 and still exists in 2.5-HEAD.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


Mime
View raw message