httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50292] New: ProxyPassInterpolateEnv directive broken in version 2.3
Date Thu, 18 Nov 2010 14:50:16 GMT

           Summary: ProxyPassInterpolateEnv directive broken in version
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy

In revision 959464 (re-order many struct members for better alignment on
64bit), the type of field interpolate_env in structure proxy_dir_conf was
changed from "int" to "signed char" but ap_set_flag_slot is still used as the
setter method. 
This does not work with the new type and leads to setting a wrong value and/or
thrashing memory depending on endianness.

A specific setter function such as :
static const char *
    set_interpolate_env(cmd_parms *parms, void *dconf, int flag)
    proxy_dir_conf *conf = dconf;

    conf->interpolate_env = flag;
    return NULL;
solves the problem but maybe something simpler is possible.

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message