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 2008/06/12 14:39:11 UTC

DO NOT REPLY [Bug 45192] New: Logformats with %{???}e can cause Segfaults

https://issues.apache.org/bugzilla/show_bug.cgi?id=45192

           Summary: Logformats with %{???}e can cause Segfaults
           Product: Apache httpd-2
           Version: 2.2.8
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_log_config
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: rainer-apache@7val.com


LogFormats that use an environment Variable that is not set can cause
Segfaults. We found this problem with variables that were sometimes set with
apache_setenv from PHP.

An example LogFormat that caused the problem:
LogFormat "%h %u:%v type:\"%{job_type}e\"" log_jobs_type

The enclosed patch appears to fix the segfaults.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 45192] Logformats with %{???}e can cause Segfaults

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45192

Nick Kew <ni...@webthing.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Nick Kew <ni...@webthing.com> 2009-12-26 17:00:55 UTC ---
Fixed in trunk and 2.2 (don't know how long ago).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 45192] Logformats with %{???}e can cause Segfaults

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45192





--- Comment #2 from Takashi Sato <ta...@lans-tv.com>  2008-06-12 07:00:33 PST ---
ap_escape_logitem can accept NULL as the second argument.
server/util.c:

AP_DECLARE(char *) ap_escape_logitem(apr_pool_t *p, const char *str)
{
    char *ret;
    unsigned char *d;
    const unsigned char *s;

    if (!str) {
        return NULL;
    }


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 45192] Logformats with %{???}e can cause Segfaults

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45192





--- Comment #1 from Rainer Canavan <ra...@7val.com>  2008-06-12 06:06:32 PST ---
Created an attachment (id=22119)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22119)
fixes segfaults when logging environment variables that are not set


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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